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.
Hi Everyone,
I would really appreciate anyones help with my situation.
Below is a table im working on
I am trying to count how many 'trues' and 'falses' there are for each CP_ID. I then want to find the percentage of 'trues' from the total of both 'trues' and 'falses'.
I have tried this but get an error explaining I cant count boolean values.
Solved! Go to Solution.
Try
NumberHits = CALCULATE(COUNT(name[CP_ID]), name[WIN_FLAG]=TRUE()) NumberMisses = CALCULATE(COUNT(name[CP_ID]), name[WIN_FLAG]=FALSE())
You can count CP_ID if both do not have any null values (nonoverlapping).
Good idea, Counting the CP will give me the total of both true and false. How can I then split this and find the number for each true and false?
Try
NumberHits = CALCULATE(COUNT(name[CP_ID]), name[WIN_FLAG]=TRUE()) NumberMisses = CALCULATE(COUNT(name[CP_ID]), name[WIN_FLAG]=FALSE())
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 |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |