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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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 @Anonymous
You can build a new table to remove duplicates:
DAX:
Is this the result you would expect?
Hope this helps you.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
You can build a new table to remove duplicates:
DAX:
Is this the result you would expect?
Hope this helps you.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 137 | |
| 102 | |
| 71 | |
| 67 | |
| 65 |