Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Formula

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:

 

TicketCover
128711
128742
128742
128724
128724
128724
128724
128761
128711
128724

 

My final result should be like the below:

 

TicketCover
128711
128724
128742
128761
Total8

 

Is there a way I can do it?

 

Thank you.

1 ACCEPTED SOLUTION
v-yinliw-msft
Community Support
Community Support

Hi @Anonymous 

 

You can build a new table to remove duplicates:

DAX:

Table = SUMMARIZE('Sample Table','Sample Table'[Ticket],'Sample Table'[Cover])
And then you can use matrix in the Power BI Desktop:
vyinliwmsft_0-1665647405485.png

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.

View solution in original post

2 REPLIES 2
v-yinliw-msft
Community Support
Community Support

Hi @Anonymous 

 

You can build a new table to remove duplicates:

DAX:

Table = SUMMARIZE('Sample Table','Sample Table'[Ticket],'Sample Table'[Cover])
And then you can use matrix in the Power BI Desktop:
vyinliwmsft_0-1665647405485.png

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.

amitchandak
Super User
Super User

@Anonymous , I visual use Ticket and cover as not summarized, and this measure

 

Sumx(summarize(Table, Table[Ticket], Table[Cover]), [Cover])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.