Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Using GetFieldSelections in set analysis

Hi All,

I have a dashboard with [Month] as a filter. Only one value for [Month] can be selected at a time.

I'm using the code:

sum({<TransitionMonth=${"=GetFieldSelections(Month)"} , Version={'ABC'}>}Value)

and with 'Aug' filtered for [Month], I'm getting the 4th column in the below table:

set analysis.PNG

What I need is for each row to give me the value of 2.2, since that is value for [TransitionMonth]=[Month]=Aug.

What am I doing wrong?

18 Replies
Anonymous
Not applicable
Author

Sorry, didn't get you.

OmarBenSalem

Under adds on, uncheck zero values:

Capture.PNG

YoussefBelloum
Champion
Champion

Complement.png

Uncheck this checkbox like this

Anonymous
Not applicable
Author

Hey, it's okay. It wasn't exactly what i wanted but  I could get this one to work for the overall code. Thanks!

YoussefBelloum
Champion
Champion

you're welcome !

don't forget to close the thread by marking the helpful and the correct answers.

Anonymous
Not applicable
Author

This worked!

sum(total{<TransitionMonth={'$(=getfieldselections(Month))'} , Version={'1YP'}>}Inflows)*change/100


It was missing a TOTAL function

YoussefBelloum
Champion
Champion

But with this, before you select your Month, each time, you will have the TOTAL on each line !

Is that what you want ?

Anonymous
Not applicable
Author

Yes. That was what I wanted. This is a part of a bigger code, and I have an If-Else to handle this.

YoussefBelloum
Champion
Champion

Perfect, good luck