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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
AllanBerces
Helper IV
Helper IV

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
v-xuxinyi-msft
Community Support
Community Support

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

Hi @lucadelicio 

Same result zero appeared on all the project.

Thank you

accept as a solution

Luca D'Elicio

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

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.