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: 
fionna51
Creator
Creator

Can I show zero but not null in bar chart?

Hi,

I used bar chart to display rate for entities. Data looks like below. Rate is calculated sum(Num)/sum(Den) for each Entity. Also, there is another condition should apply which we only take sum(Den)>=5, otherwise do not show this entity in the chart. So, h1 should not show up. But, for h4, although total numerator is 0, it has valid number of denominators, it should still show up. I play around the bar chart properties, couldn't achieve this. How can I only show h2, h3 and h4?

Also, user can select any entities, I want to always show h2, no matter it is selected or not. Is that possible? Please use my attachment to look into details.

Thanks in advance.

   

Entity Member Num Den
    h1m111
    h1m201
    h1m311
    h2m411
    h2m501
    h2m611
    h2m701
    h2m811
    h2m911
    h2m1011
    h2m1101
    h2m1211
    h3m411
    h3m501
    h3m601
    h3m701
    h3m811
    h3m901
    h3m1011
    h3m1101
    h3m1211
    h4m401
    h4m501
    h4m601
    h4m701
    h4m801
    h4m901
    h4m1001
    h4m1101
    h4m120

1

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

You can use Calculated Dimension

=Aggr(If(Sum(Den) >= 5,Entity),Entity)

and check Suppress value when Null

View solution in original post

3 Replies
antoniotiman
Master III
Master III

You can use Calculated Dimension

=Aggr(If(Sum(Den) >= 5,Entity),Entity)

and check Suppress value when Null

fionna51
Creator
Creator
Author

Hi Antonio,

Thanks for your help. It almost worked. But when I put this statement into some NESTED IF, seems got wrong values. If I applied to different conditions separately, every condition the statement works. I will keep trying.

In addition, do you have any suggestion for my second question, always show h2?

antoniotiman
Master III
Master III

Hi Fion,

second question : I don't think this is possible.

However You can add Text in Chart.

See attachment.

Regards,

Antonio