Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 counts the "On Time" and "Not on Time" from both columns.
Solved! Go to Solution.
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" )
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" )
Yep, totally worked. Thanks! See below my fancy new visual.
@Anonymous
I hadn't seen anything fancier in quite a while I must admit
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
99 | |
76 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |