Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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
User | Count |
---|---|
102 | |
84 | |
77 | |
70 | |
67 |
User | Count |
---|---|
113 | |
99 | |
97 | |
72 | |
68 |