Forum Discussion
MalcolmR
3 years agoRegular Visitor
Pivot file count error when nulls present
I am a newbie to PBI. I do use Tableau. I use the following calculation to count the number of xyz records in xyz_total that have a score = or > 38. I use Distinctcount on the Record id becaus...
- 3 years ago
Hi MalcolmR,
You can use the BLANK() function in DAX along with the operator "==" which is strictly blank, which will ignore the 0s in your column and count the blanks.
You can use it in the another measure changing the condition in the filter argument of calculate.
Here is a link explaining the BLANK() function.
Hope this helps.
Thank you,
Vishesh Jain
visheshjain
3 years agoImpactful Individual
Hi MalcolmR,
You can use the BLANK() os ISBLANK() functions in DAX, this will igore the 0s in your column and count the blanks.
You can use it in the another measure changing the condition in the filter argument of calculate.
Here is a link explaining the BLANK() function.
Hope this helps.
Thank you,
Vishesh Jain