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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
raghavsurya
Partner - Specialist
Partner - Specialist

using if condition in Expression

Hi,

I am building a guage chart wherein I need to get the % of Acutal Revenue against the Projected Revenue if the year is 2009. In the Sales Table I have the following columns.

1, Year

2, Actual Sales

3. Actual Services

4. Projected Sales

5. Projected Services.

I have defined the expression as below

(sum(if(Year='2009',([Actual Sales])+ [Actual Service])))/(sum(if(Year='2009',([Projected Sales]+ [Projected Services]))))

But this expression is not returning any values.

Can anybody please point out the issues in the expression.

Thanks and Regards,

Raghav

2 Replies
Not applicable

hi ,

I think there is no such issue with expression , can u send a sample qvw file for same

ashwin

Not applicable

hi ,

I think there is no such issue with expression , can u send a sample qvw file for same

ashwin