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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Solution Supplier
Solution Supplier

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.