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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
LotteLaugesen
Helper V
Helper V

How to get distinct values without null values for a parameter in Report Builder

Hi

 

What I'm tryng to achieve is to get distinct values from 'Dim_Customers'[Customer group name] but I want to remove null values.
Can anybody tell me the correct syntax or how to do it?

This doesn't work 😞
EVALUATE VALUES('Dim_Customers'[Customer group name]),FILTER('Dim_Customers','Dim_Customers'[Customer group name] <> BLANK())

BR
Lotte

4 REPLIES 4
ChiragGarg2512
Solution Sage
Solution Sage

Sorry for the misunderstanding. Try this:
EVALUATE VALUES('Dim_Customers'[Customer group name]),FILTER('Dim_Customers', (NOT ISBLANK('Dim_Customer'[Customer group name])) && 'Dim_Customer'[Customer group name] <> "")

Hi @ChiragGarg2512 

Thank you, but I get this syntax error:

LotteLaugesen_2-1694589313576.png

 

 

 

ChiragGarg2512
Solution Sage
Solution Sage

Try this DAX:

DistinctCustomerGroup = Distinct(Filter('Dim_Customers', Not IsBlank('Dim_Customers'[Customer group name])))

Hi @ChiragGarg2512 

 

Thank you, but it's inside Query Designer in Report Builder and it doesn't accept that

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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