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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Removing duplicates in the visualisation only

Hi, 

 

I am trying to remove the duplicates only for the visualisations, not in transform data query. So that I will end up with data with all 'cases' and with data with 'outstanding cases' since the duplicates will be removed. Is there a way to filter it somehow? 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

You can have measures like

 

Unique Cases = DISTINCTCOUNT('Table'[ID])


Unique Cases =
CALCULATE(
COUNTROWS('Table'),
FILTER(
ALLEXCEPT('Table', 'Table'[ID]),
'Table'[Column] = "Value"
)
)


Outstanding Cases =
CALCULATE(
[Unique Cases],
'Table'[StatusColumn] = "Outstanding"
)

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

View solution in original post

Anonymous
Not applicable

So, my data contains the total number of cases and some cases have the same reference number. Ideally, I do not want to remove the duplicates in Transform data as I still want to see the total number but I would like to remove them in a report visual itself, for example in a card visualisation. I hope it makes sense. 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

So, my data contains the total number of cases and some cases have the same reference number. Ideally, I do not want to remove the duplicates in Transform data as I still want to see the total number but I would like to remove them in a report visual itself, for example in a card visualisation. I hope it makes sense. 

amitchandak
Super User
Super User

@Anonymous ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

You can have measures like

 

Unique Cases = DISTINCTCOUNT('Table'[ID])


Unique Cases =
CALCULATE(
COUNTROWS('Table'),
FILTER(
ALLEXCEPT('Table', 'Table'[ID]),
'Table'[Column] = "Value"
)
)


Outstanding Cases =
CALCULATE(
[Unique Cases],
'Table'[StatusColumn] = "Outstanding"
)

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.