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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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