Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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] ) ) )
Hi,
Please check the below picture and the attached pbix file.
Cover measure: =
SUMX ( DISTINCT ( Data[Ticket] ), CALCULATE ( DISTINCT ( Data[Cover] ) ) )
Hi Jihwan,
It works, thank you.
Kind Regards
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 51 | |
| 36 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |