Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Havin these conditions, I should also count those orders with 0 duration, since they aren't blank. Why it only counts the duration lower then 60 but not the 0's?
Hope someone can clarify.
Thank you very much in advance.
Best.
Solved! Go to Solution.
In DAX BLANK() = 0 evaluates to true which causes your issue.
Have a read of Be Careful When Filtering for Blanks in DAX — ehansalytics
Replace:
Table1[Duration]<> blank()
with NOT ISBLANK ( Table1[Duration] )
If you wanted to use DISTINCTCOUNT you could wrap it in a CALCULATE statement to add the filters you need.
In my humble opinion and the years I have been for PBI, if it does not affect me to change all whites to -1 I would do it, since I have not been able to find a way for PBI to understand or differentiate which data is white and which data is 0.
I do it like this:
And you'd just have to leave out the -1 values and you're done.
If this post answers your question, please mark as "Accept as a solution" so that other people can also access it.
Best regards
Ivancito
In my humble opinion and the years I have been for PBI, if it does not affect me to change all whites to -1 I would do it, since I have not been able to find a way for PBI to understand or differentiate which data is white and which data is 0.
I do it like this:
And you'd just have to leave out the -1 values and you're done.
If this post answers your question, please mark as "Accept as a solution" so that other people can also access it.
Best regards
Ivancito
@Syndicate_Admin thats a good idea to tidy up the data in the first place. I really didn't know that PowerBi treats blank()=0 like in the information @bcdobbs provided.
In DAX BLANK() = 0 evaluates to true which causes your issue.
Have a read of Be Careful When Filtering for Blanks in DAX — ehansalytics
Replace:
Table1[Duration]<> blank()
with NOT ISBLANK ( Table1[Duration] )
If you wanted to use DISTINCTCOUNT you could wrap it in a CALCULATE statement to add the filters you need.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!