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

Get bar graph to display a value even if there is no entry in raw data?

Hi all,

I have been trying to figure this out for sometime and finally decided it is time I asked the community.

I have a bar graph that I'm displaying:

Dimension1: Month

Dimension2: Type

Measure: -NORMINV((Count([ReturnedQTY])/Sum([ShippedQTY])), 0, 1)

Associated Month and Type in data manager.

 

Results I'm getting:

Only if "ReturnedQTY" of a "Type" is present for a particular "Month", it will display results as expected.

 

Results I wish to have:

If "ReturnedQTY" of a "Type" is not present in "Month" /data file, display 6.

Else just return the above calculation.

Essentially, each "Month" should display all "Type" A,B,C,D.

 

I have tried an IF statement but it doesn't work:

if(([ReturnedQTY]<1), 6, -NORMINV((Count([ReturnedQTY:])/Sum([ShippedQTY])), 0, 1))

 

Any thoughts/ideas?

Any help very much appreciated.

Labels (1)
2 Replies
vinieme12
Champion III
Champion III

try 

-NORMINV(alt(Count([ReturnedQTY:])/Sum([ShippedQTY]),6))

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
NabScope
Contributor
Contributor
Author

Hi @vinieme12 , I've tried but:

NabScope_0-1652063455774.png

also, it seems that alt doesn't work with aggregation functions (count in my case).