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 a number of columns in a table as below
UPRN | Outcome |
789 | Justified |
123 | Justified |
456 | Justified |
123 | Justified |
123 | Not justified |
456 | Not justified |
123 | Justified |
What I would like to do is count the number of times a UPRN appears in the table, where the outcome code is "Justified".
So in the table above what I would end up with is an additional column / measure like below:
UPRN | Outcome | Count of justified for UPRN |
789 | Justified | 1 |
123 | Justified | 3 |
456 | Justified | 1 |
123 | Justified | 3 |
123 | Not justified | 3 |
456 | Not justified | 1 |
123 | Justified | 3 |
I would then need something to tell me how many unique UPRN's are recorded against the Count of Justified for UPRN column ultimately ending up with the table below:
Count of justified for UPRN | Unique UPRN's that match |
1 | 2 |
2 | 0 |
3 | 1 |
4 | 0 |
Solved! Go to Solution.
Hi @Rob_Morris ,
The pbix file is here.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Rob_Morris ,
The pbix file is here.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for this.
Very helpful and did exactly what I wanted.
@Rob_Morris you can use the below measure for count of justified & Non justified
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 |
---|---|
108 | |
106 | |
87 | |
77 | |
69 |
User | Count |
---|---|
124 | |
112 | |
94 | |
84 | |
75 |