Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
lenny500
Contributor
Contributor

Need Set Analysis Fixed For Certain Dimensions and Dynamic Others On Visual

Hello All,

New to QLIK and love it so far...this is prob an easy question.

I have 3 dimensions (SCENARIO, VERSION and CATEGORY)

For the 'SC.Actual' SCENARIO, I need the VERSION to be fixed with 'VR.Final', however i want the CATEGORY to be flexible depending on what the user selects on the Filter Pane Chart.

Here is my set analysis expression:

Sum({1<SCENARIO_ANCESTOR_ID={'SC.Actual'},VERSION_ID={'VR.Final'}>}AMOUNT)

this stays the same number no matter what category is chosen on the filter pane chart. is it possible for some dimensions to be set and some to be dynamic?

Thanks!

Labels (3)
4 Replies
tresesco
MVP
MVP

Try like:

If( SCENARIO_ANCESTOR_ID='SC.Actual',  Sum({<VERSION_ID={'VR.Final'}>}AMOUNT) , Sum(AMOUNT) )

lenny500
Contributor
Contributor
Author

Thanks so much for quick feedback!

I need the Version to stay "VR.Final" even if the VERSION is change on the filter pane chart. It's a transpose extensions and here is the complete code that i am using:

IF(ValueList('Actual','CV','OL')='Actual',
Sum({1<MEASURE_ANCESTOR_ID={'AC.IS40'},SCENARIO_ANCESTOR_ID={'SC.Actual'},VERSION_ID={'VR.Final'}>}AMOUNT)
,

IF(ValueList('Actual','CV','OL')='CV',
Sum({<LAYER_DESC_LVL_2={'Total Layer'},MEASURE_ANCESTOR_ID={'AC.IS40'},SCENARIO_DESCRIPTION={'Budget'}>}AMOUNT)
,

IF(ValueList('Actual','CV','OL')='OL',
Sum({<LAYER_DESC_LVL_2={'Total Layer'},MEASURE_ANCESTOR_ID={'AC.IS40'},SCENARIO_DESCRIPTION={'Outlook'}>}AMOUNT)

)))

lenny500
Contributor
Contributor
Author

Sorry did I just complicate it? usually i get a response pretty quickly...

Brett_Bleess
Former Employee
Former Employee

Believe the following Design Blog post should get you on the right track with things:

https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.