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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi All,
I've filtered a column in my report using the below measure:
If there a possibility that I get "0" instead of Blank whereever there is no data for Electric Deals?
Please see highlited area below:
Regards,
Himanshu
Solved! Go to Solution.
@Anonymous , Add +0 to the measure
Electric Deals = CALCULATE(COUNT(Deals[TypeName]), FILTER(Deals,Deals[TypeName]= "Electric")) +0
Hi @Anonymous
adding a zero, as already pointed out, is the most direct solution. Another option is:
Electric Deals =
VAR aux_ =
CALCULATE (
COUNT ( Deals[TypeName] ),
FILTER ( Deals, Deals[TypeName] = "Electric" )
)
RETURN
COALESCE ( aux_, 0 )
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi @Anonymous
adding a zero, as already pointed out, is the most direct solution. Another option is:
Electric Deals =
VAR aux_ =
CALCULATE (
COUNT ( Deals[TypeName] ),
FILTER ( Deals, Deals[TypeName] = "Electric" )
)
RETURN
COALESCE ( aux_, 0 )
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Thanks !!! it solved my issue.
Regards,
Himanshu
Hi @Anonymous
Use this measure
IF(ISBLANK(Electric Deals), '0', Electric Deals)
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
| User | Count |
|---|---|
| 51 | |
| 38 | |
| 33 | |
| 22 | |
| 19 |
| User | Count |
|---|---|
| 136 | |
| 101 | |
| 58 | |
| 36 | |
| 35 |