Hello! I am currently having an issue fixing a little drill down bug at work.
I currently have a measure in my view that calculates whether two dimensions are greater than the other and in another clause, whether that dimension is greater than 0. It currently works and calculates correctly however the drill downs are not bringing up the how that number was calculated. Is there any way to implement that functionality in the dimension below?
I understand that for “filters” to carry over to drill downs they must be in LookML filters however I have a CASE statement that needs to carry over.
measure: count_pga_met {
type: sum
sql: CASE WHEN (${TABLE}.pga_earned >= ${TABLE}.pga_req) AND (${TABLE}.pga_req > 0) THEN 1 ELSE 0 END ;;
drill_fields: [detail*]
}
Note: pga_earned and pga_req were measures but are now dimensions of the table.
measure: pga_new {
type: sum
sql: ${TABLE}.pga_new ;;
label: "PGA New"
drill_fields: [detail*]
}
measure: pga_recovery {
type: sum
sql: ${TABLE}.pga_recovery ;;
label: "PGA Recovery"
drill_fields: [detail*]
}
dimension: pga_req {
type: number
sql: ${TABLE}.pga_req ;;
label: "PGA Required"
drill_fields: [detail*]
}
Thank you so much for the time + hasty replies. Thankful for this community.
Cheers
Kevin