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
MarianneElver
Helper III
Helper III

How to filter out or "null" repeated occurrences of a product each customer

Any suggestions on how to achieve either 1) or 2)?

 

PBIHelp.PNG

2 ACCEPTED SOLUTIONS
Vvelarde
Community Champion
Community Champion

@MarianneElver

 

Hi, in Query Editor, select the 2 columns and go to Remove Rows - Remove Duplicates.

 

Regards

 

Victor

Lima - Peru




Lima - Peru

View solution in original post

Hi @MarianneElver

 

With DAX, you can use the "ALL" function to get unique combination of Rows.

From the Modelling Tab, select NEW TABLE and use this formula

 

NewTable= ALL(TableName[Customer] , TableName[Product])

Regards
Zubair

Please try my custom visuals

View solution in original post

5 REPLIES 5
Bordalos
Helper I
Helper I

@MarianneElver not sure if I undertand clearly what you want. How the null get to the second table? Are  you looking just for a unique entry for each combination customer/Product ? if is that the case follow  @Vvelarde suggestion. If not ,please provide more details.

Hi @MarianneElver

 

With DAX, you can use the "ALL" function to get unique combination of Rows.

From the Modelling Tab, select NEW TABLE and use this formula

 

NewTable= ALL(TableName[Customer] , TableName[Product])

Regards
Zubair

Please try my custom visuals

Thanks, that's good to know too - as I'm actually need this in a separate table.
Vvelarde
Community Champion
Community Champion

@MarianneElver

 

Hi, in Query Editor, select the 2 columns and go to Remove Rows - Remove Duplicates.

 

Regards

 

Victor

Lima - Peru




Lima - Peru

Hi, oh so simple, I was convinced that this method would remove duplicates in each column, and not considering the unique combinations. It works, thank you!

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.