Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
n1ef5ng1
Creator
Creator

How to include if statement on the Label

Hi all,

I have stuck this for awhile. On the attached, (capture.jpg). This is a chart that I would like to achieve in QV. I did this capture.jpg through qlikview using label expression where i compute the % in label expression.

However I am stuck on creating a replica of the chart with a more complicated formula. Attached sample is @ Sample.qvw. ignore the indicator field as there isnt any indicator field in the real database, it is just to assist on what are the fields that should be included in the chart.

Criteria text box is the criteria that i have set for the line chart, this is done through dimension, However I would like to compute the value of each month in the label box. However I am stuck in it. The data file should assist in understanding the problem.

Thanks.

1 Solution

Accepted Solutions
Not applicable

Hi,

Check the attached app. '+' is acting as OR operator.

View solution in original post

5 Replies
Not applicable

Hi,

PFA, change set expression according to your conditions.

n1ef5ng1
Creator
Creator
Author

thanks but the number is different... i.e 201501 for yours is 128 but actual is 98 due to some if statement that is needed to fit it in.

Not applicable

sum({<YYYYMM={201402},Fruits

={'Apple','Orange'},Service={'AM1','AM2'}>+<YYYYMM={201402},Name={'MS1','MS2'},Service={'OTH'}

>}Amount)

..............Try this

n1ef5ng1
Creator
Creator
Author

Doesn work... may i know what does >+< means? diden came across this before...

Not applicable

Hi,

Check the attached app. '+' is acting as OR operator.