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

See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap

Reply
Anonymous
Not applicable

Filtering on specific conditions

Hello everyone,

I have a table that looks as per below.

Capture-powerbi.JPG

I would like to filter the table on the condition whereby if there are multiple rows of the same material, it will filter those with the 'X'. If there's isn't any multiple material, then it remains the same. This would need to be done in Power Query as I will need to merge it with other tables.

Thanks for your help and support!

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@Anonymous is there a logic why it's the 2nd or you just one to remove one of them?
Also, why did you remove 3-00335-53? did you mean the one above?

Basically you can just use the remove duplicates on that column and it will only keep one of them. You can sort it before that step by another column for maybe the sorting logic you need and it will keep always the upper ones



2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

View solution in original post

1 REPLY 1
SpartaBI
Community Champion
Community Champion

@Anonymous is there a logic why it's the 2nd or you just one to remove one of them?
Also, why did you remove 3-00335-53? did you mean the one above?

Basically you can just use the remove duplicates on that column and it will only keep one of them. You can sort it before that step by another column for maybe the sorting logic you need and it will keep always the upper ones



2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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

Top Solution Authors
Top Kudoed Authors