Forum Discussion
Anonymous
7 years agoNot 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
- AnonymousNot 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.
- ibarrauSuper 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,