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
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
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.

Top Solution Authors