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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.