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
py1029
Frequent Visitor

Remove Duplicate using Dax

Hi,

 

I have a slicer which I can select the plant name. For instance, when I select one of the plant name (Bukit Jalil), it has the following outcome.

py1029_0-1637892577966.png

When I select another plant name (Ampang Jaya), I got this outcome

py1029_1-1637892635268.png

When I multi select these two plants (e.g. Bukit Jalil and Ampang Jaya), I got this result.

py1029_2-1637892719150.png

How do I remove the duplicate Project (Nova Residence) and make it appears once using dax?

 

Thanks

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Please add an index column in query editor then create measure like below and apply it to visual level filter:

Measure = RANKX(ALLSELECTED('Table'[Plant Name]),CALCULATE(MAX('Table'[Index])))

Vlianlmsft_0-1638340010298.png

 

View solution in original post

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Please add an index column in query editor then create measure like below and apply it to visual level filter:

Measure = RANKX(ALLSELECTED('Table'[Plant Name]),CALCULATE(MAX('Table'[Index])))

Vlianlmsft_0-1638340010298.png

 

lbendlin
Super User
Super User

Remove the Plant Name column from your Current Outcome, and specify the distance as some sort of aggregation, like minimum, or average.

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.