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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
1001
Resolver II
Resolver II

Removing Blank from s Distinct function Table.

Hi Guys, I've created a table of distinct values from another table. However, I have a blank cell that's carried across. The blank cell is preventing me from creating a one to many relationship to the original MasterData table. It's coming up many to many.  How can I remove this blank cell so it will allow me a one to many connection?  The DAX below is what I have. Thanks. 

SubProduct Grp = DISTINCT(Masterdata[Sub Category])
4 REPLIES 4
grazitti_sapna
Super User
Super User

Hey Try using this Dax formula

SubProduct Grp = Distinct(Not(isblank(Masterdata[Sub Category])))

Ahmedx
Super User
Super User

SubProduct Grp = FILTER(DISTINCT(Masterdata[Sub Category]),[Sub Category]<>BLANK())

It solved my problem, thanks

Hi Ahmedx, thanks for replying.

I ended up, in the Query editor, referencing my main table, removing blank rows, removing duplicates, then deleting all other columns to create my new Lookup table. Then loaded that into the report. Everyhting works fine now. Cheers. 

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors