Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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

2 Replies
PrashantSangle

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

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)))