Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
yusenlogistics
Contributor II
Contributor II

Graph with month and value at 0

Hello,

I have a problem with a graph in QV.

This graph present a quantiy by month for one fiscal year ( from April N to March N+1)

The problem is that sometimes there is no quantity for a month. In this case, the month doesn't appear in the graph.

for example : no dato for August and October

I have tried to selected the option "Show all the value" on the dimension but the problem is that Qlik View show all the different value of the dimension and lose the link with the filter FISCAL YEAR. The graph present all the month even if I selected just two month and the sorting of the month is not good because QV lose the link between the month and ths fiscal year as I can see in the Table I have created near the graph.

Do you have any idea for resolve my issue?

Thank you very much in advance for your help!

1 Solution

Accepted Solutions
rubenmarin

Hi, unchecking "show all values" and "supress zero values" this expression can work:

If(not IsNull(Month), sum({$<Type={"T1"}>} QTE))

I can't explain why it's working.

View solution in original post

6 Replies
rubenmarin

Hi Stéphanie, in Presentation tab, uncheck 'Supress zero values'.

Hope this helps!

yusenlogistics
Contributor II
Contributor II
Author

Hi Ruben!

Thank you for your reply!

I tried to uncheck 'Supress zero values' but this option doesn't resolve my issue because I want to have the value at 0 IF I selected the month with a value at 0...

rubenmarin

Hi Stéphanie, I made a very simple example, if I select Month '2', the chart shows the point at 0, isn't that what you want?

yusenlogistics
Contributor II
Contributor II
Author

Hi,

Thanks for your help.

I have created an other table with month, Type and Qty and added two graph.

I realised the sum of the Quantity If the Type = "T1" with using set analysis

The result of my first graph is not good because I just want to have the month 2 and 3 as I have selected.

The result of the second graph is not what I want because I would like to have the value of the month 2 and the month 3.

Hope it's clearer 😉

Thank you very much!

rubenmarin

Hi, unchecking "show all values" and "supress zero values" this expression can work:

If(not IsNull(Month), sum({$<Type={"T1"}>} QTE))

I can't explain why it's working.

yusenlogistics
Contributor II
Contributor II
Author

Hi,

Thank you very much!! I don't understand too why it's working but it's working!

I have tried to find a solution during a long time... Thank you very much for your help!

Stéphanie