I am trying to add a dynamic label using liquid for a dimension/measure. Below is my LookML,
measure: TotalAmount {
label: "{% FORMAT_DATETIME("%B %G", DATETIME(DATE_TRUNC(CURRENT_DATE,MONTH))) %}"
type: sum
value_format:"$#,##0.00;($#,##0.00)"
sql: ${TABLE}.Amount ;;
}
But this returns a bunch of errors
Solved! Go to Solution.
You can't run a query in Liquid HTML like that, so this will not work. Even if you could, it would only return a single result, so if the goal is to get your metrics broken out by month in the field picker, that would not work either.
You can't run a query in Liquid HTML like that, so this will not work. Even if you could, it would only return a single result, so if the goal is to get your metrics broken out by month in the field picker, that would not work either.