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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
suryaa30
Creator II
Creator II

Simplified Set Expression

Sum({< Year = {'$(=Max(Year))'}, FK_Service = {'0', '2208', '2214'} >} GrossSales_P_RISK_Monthly)

-

Sum({< Year = {'$(=Max(Year))'}, FK_Service = { '2108'} >} GrossSales_P_RISK_Monthly)

Can someone help me above expression. A-B

Labels (1)
2 Replies
PrashantSangle
MVP
MVP

Hi,

try below

Sum({< Year = {'$(=Max(Year))'}, FK_Service = {'0', '2208', '2214'} >- <Year = {'$(=Max(Year))'}, FK_Service = { '2108'}>} GrossSales_P_RISK_Monthly)

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
sunny_talwar
MVP
MVP

One way might be this

Sum({< Year = {'$(=Max(Year))'}>}

If(Match(FK_Service, '0', '2208', '2214'), GrossSales_P_RISK_Monthly,

If(Match(FK_Service, '2108'), -GrossSales_P_RISK_Monthly)))