Is there a way through LookML to workout the percentage difference between two numeric dimensions? Such that I can aggregate the dimensions down and the percentage difference works adjusts according to the granularity of the aggregation?
I know I can do this via a Table Calculation by creating two total measures and then doing a Table Calculation in the Explore between the two measures, but I preferably would like to do this in LookML directly.
dimension: current_kpi_value {
type: number
sql: ${TABLE}.current_kpi_value ;;
}
dimension: previous_kpi_value {
type: number
sql: ${TABLE}.previous_kpi_value ;;
}