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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
karthikeyan1504
Creator III
Creator III

if else.. issue

Hi,

I have a requirement as briefed below,

Please refer the table below,

account id, description, amount

1, Salary, 100

2, Bonus, 20

from above table I need to build a chart to show the salary & Salary + Bonus trendline. If condition doesn't helps..

Salary = 100

Salary+Bonus = 100 + 20 = 120

Could anyone please help me on this?

Thanks & Regards,

Karthikeyan.

12 Replies
Peter_Cammaert
Partner - Champion III
Partner - Champion III

I guess you want something like:

Salary+Bonus thread177766.jpeg

Some set analysis is helpful. However, it should work with an IF() as well. Set Analysis performs better

Peter

Peter_Cammaert
Partner - Champion III
Partner - Champion III

BTW I was assuming that a real trend line could easily jump over missing data points. For example, 2011 has no salary data but the Trend line will interpolate between 2010 and 2012.

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

Dimesion: account id

Salary Expression: Sum({<description={'Salary'}>} amount)

Salary + Bonue Expression: Salary Expression: Sum({<description={'Salary', 'Bonus'}>} amount)