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.
Hello Team,
I need your help with a formula. I need to calculate the number of covers per Ticket. The database shows the data as per below:
Ticket | Cover |
12871 | 1 |
12874 | 2 |
12874 | 2 |
12872 | 4 |
12872 | 4 |
12872 | 4 |
12872 | 4 |
12876 | 1 |
12871 | 1 |
12872 | 4 |
My final result should be like the below:
Ticket | Cover |
12871 | 1 |
12872 | 4 |
12874 | 2 |
12876 | 1 |
Total | 8 |
Is there a way I can do it?
Thank you.
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
Cover measure: =
SUMX ( DISTINCT ( Data[Ticket] ), CALCULATE ( DISTINCT ( Data[Cover] ) ) )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
Please check the below picture and the attached pbix file.
Cover measure: =
SUMX ( DISTINCT ( Data[Ticket] ), CALCULATE ( DISTINCT ( Data[Cover] ) ) )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi Jihwan,
It works, thank you.
Kind Regards
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 |
---|---|
96 | |
93 | |
82 | |
70 | |
64 |
User | Count |
---|---|
118 | |
106 | |
93 | |
79 | |
72 |