Forum Discussion
Anonymous
7 years agoNot applicable
Summarise data in two columns
I have two columns in my raw dataset which contain the values "On Time" or "Not on Time" and only one of the two columns is populated at any given time. See below example. I want a measure that c...
- 7 years ago
Hi Anonymous
Try these two measures in for instance Card visuals:
NumberOfOnTime = CALCULATE ( COUNT ( Table1[14 Day SLA] ), Table1[14 Day SLA] = "On Time" ) + CALCULATE ( COUNT ( Table1[21 Day SLA] ), Table1[21 Day SLA] = "On Time" )NumberOfNotOnTime = CALCULATE ( COUNT ( Table1[14 Day SLA] ), Table1[14 Day SLA] = "Not On Time" ) + CALCULATE ( COUNT ( Table1[21 Day SLA] ), Table1[21 Day SLA] = "Not On Time" )
AlB
7 years agoCommunity Champion
Hi Anonymous
Try these two measures in for instance Card visuals:
NumberOfOnTime =
CALCULATE ( COUNT ( Table1[14 Day SLA] ), Table1[14 Day SLA] = "On Time" )
+ CALCULATE ( COUNT ( Table1[21 Day SLA] ), Table1[21 Day SLA] = "On Time" )
NumberOfNotOnTime =
CALCULATE ( COUNT ( Table1[14 Day SLA] ), Table1[14 Day SLA] = "Not On Time" )
+ CALCULATE ( COUNT ( Table1[21 Day SLA] ), Table1[21 Day SLA] = "Not On Time" )
Anonymous
7 years agoNot applicable
Yep, totally worked. Thanks! See below my fancy new visual.
- AlB7 years agoCommunity Champion
Anonymous
I hadn't seen anything fancier in quite a while I must admit :smileyhappy: