Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
souadouert
Specialist
Specialist

set anlysiswith dimension

Hello,

I need to use the set analysis with one dimension,

if (total in 2017> total in2018, yes, no)

15 Replies
souadouert
Specialist
Specialist
Author

Capture.PNG

sunny_talwar

What do I do with this?

souadouert
Specialist
Specialist
Author

so in this case i need this ?

Aggr(If(({<YEAR={'2018'}>}Sales)< ({<YEAR={'2017'}>}Sales), 'Yes', 'No'), Client)

sunny_talwar

You might have missed the Sum()

Aggr(If(Sum({<Year = {2018}>}Sales) < Sum({<Year = {2017}>}Sales), 'Yes', 'No'), Client)

sunny_talwar

Or use Only()

Aggr(If(Only({<Year = {2018}>}Sales) < Only({<Year = {2017}>}Sales), 'Yes', 'No'), Client)

souadouert
Specialist
Specialist
Author

THANK YOU SUNNY