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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.