I want to write a dimension with adding text values and date with MM/DD/YYYY format
eg: Result for: 2022/11/05
dimension: resultfor {
type: string
sql: 'Result For : ' || ${admin_dt_date} ;;
html:{{ rendered_value | date: "%m/%d/%Y" }};;
}
Result is showing with the above dimenstion is like
“Result For : 2022-11-05” But I Need “Result For : 11/05/2022”
Solved! Go to Solution.
This is working fine
dimension: result_for_date {
type: string
sql: 'Result For:' || to_char(${admin_dt_date}, 'MM/DD/YYYY') ;;
}
This is working fine
dimension: result_for_date {
type: string
sql: 'Result For:' || to_char(${admin_dt_date}, 'MM/DD/YYYY') ;;
}