Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
AllanBerces
Post Prodigy
Post Prodigy

Filtered Table show 0 instead of Blank

Hi Good day,

Can anyone pls correct my measure, i want to show 0 instead of blank on my filtered table. i used below measure but zero show for all the project.

 

Replace Blank to Zero =
VAR Quantity = SUM('Article no. and Location'[Quantity])
RETURN
IF(ISBLANK(Quantity),0,Quantity)
 
AllanBerces_0-1709463091016.png

 

Thank you
8 REPLIES 8
Anonymous
Not applicable

Hi @AllanBerces 

 

You can try to modify the formula as follows.

Replace Blank to Zero =
VAR Quantity = SUM('Article no. and Location'[Quantity])
RETURN
IF(Quantity = BLANK() || Quantity = "", 0, Quantity)

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Rygar
Helper II
Helper II

Try this instead of IF:

Quantity = SUM('Article no. and Location'[Quantity])+0

Hi @Rygar 

Same result it di not filter the table, zero values appeared on all the project.

 

Thank you

lucadelicio
Super User
Super User

Try to add + 0 to force the conversion type



Luca D'Elicio

LinkedIn Profile

Hi @lucadelicio 

Same result zero appeared on all the project.

Thank you

accept as a solution



Luca D'Elicio

LinkedIn Profile

Hi @lucadelicio 

Still my concern didnt solve by adding 0, zero appeared on all the project. and not on filtered project only

Thank you

I don't understand the problem. Try to create 2 diffrent measures one to use in the filtered parte and one to use in all the project.

Let me know.

It's better to upload the pbix to solve easly.



Luca D'Elicio

LinkedIn Profile

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.