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
Anonymous
Not applicable

Power Query M

 
hi everyone,
i have created the following measure on the column 'col1'  of the table TABLE1 and would like to implement the same inside the advanced editor.  
 
col1_DistinctCount = calculate( distinctcount(NorPivot22[col1]); NorPivot22[col1] <> BLANK())
The problem i am facing is that powerbi counts blank cells  in the distinct count.  how can i avoid this in the data import already?
 
thx
2 REPLIES 2
ibarrau
Super User
Super User

You should check function names constantly. This is from the last power bi desktop release (Jul-2019):

DISTINCTCOUNTNOBLANK ( <ColumnName> )

Checkout the name of the post. Is power query when the question is about dax y dax forum. Be carefull.

 

Regards,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Anonymous
Not applicable

I'd kindly suggest you read upon what is a calculated column and a measure. They are very different and it looks like you don't even know what you're talking about. Then, I'd suggest you try to not confuse DAX and M. They are very different and serve very different purposes.

 

By the way, here's something you should read first. Just try to make your and others' lives easier.

 

Thanks.

 

Best

D.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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