Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
vkal12
Creator
Creator

Zero values not shown in visualization when using set expression

Dear Community,

I have multiple bar charts where I am showing the days of the current month on the x-axis and caculated values on the y-axis. 

If I am just using Sum(Field) in my calculation the graph is shown as below: 

vkal12_0-1668077250576.png

 

If I need to use some kind of set expression in my formula it is not showing the 0 values on the x-axis anymore. 

vkal12_1-1668077288143.png

 

 

Is there any way I can achieve that all the days of the current month (1-30) are displayed on the x-axis even when using a set expression? 

 

Thank you very much for your support!

Kind regards, 
Vanessa

 

Labels (4)
1 Solution

Accepted Solutions
rubenmarin

Hi, you can try adding +Sum(0) or +Sum({1} 0) to you expression.

It may need some fixes depending of the chart, table, selections, datamodel... but maybe it works just adding that.

View solution in original post

2 Replies
rubenmarin

Hi, you can try adding +Sum(0) or +Sum({1} 0) to you expression.

It may need some fixes depending of the chart, table, selections, datamodel... but maybe it works just adding that.

vkal12
Creator
Creator
Author

Hi @rubenmarin,

thank you very much, it's works perfectly! I have just added "+ Sum(0)" to the formula and it works. 

Kind regards,
Vanessa