cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
eFKa Frequent Visitor
Frequent Visitor

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
Super User
Super User

Re: Power Query M

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.

ibarrau Established Member
Established Member

Re: Power Query M

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,

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 125 members 1,913 guests
Please welcome our newest community members: