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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello
How to write filter expression in measure column , below condition doesnt seem to work unless i use visual filter.
Solved! Go to Solution.
Hi @refint650 ,
You need to use the correct filter criteria. Reference is as follows:
M =
CALCULATE (
DISTINCTCOUNT ( 'Table'[ID] ),
FILTER ( ALL ( 'Table' ), 'Table'[ID] <> BLANK () && 'Table'[Name] = BLANK () )
)
If the problem is still not resolved, please provide detailed error information. Let me know immediately, looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @refint650 ,
You need to use the correct filter criteria. Reference is as follows:
M =
CALCULATE (
DISTINCTCOUNT ( 'Table'[ID] ),
FILTER ( ALL ( 'Table' ), 'Table'[ID] <> BLANK () && 'Table'[Name] = BLANK () )
)
If the problem is still not resolved, please provide detailed error information. Let me know immediately, looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
My suggested measure should work. Share the link from where i can download your PBI file. Show the incorrect answer and also let me know the exact result that you are expecting.
Hi,
Does this work?
=CALCULATE(DISTINCTCOUNTNONBLANK(Data[ID]),Data[Name]=BLANK())
Hope this helps.
User | Count |
---|---|
98 | |
76 | |
76 | |
49 | |
27 |