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: 
Ramki
Contributor II
Contributor II

GetSelectedCount with Alternate states

Hi All,

It would be great if some one suggest on my below issue

I am trying to display sum with and without filed selections . But not getting result correctly. Details are below

Field Name : Month( Applied alternate State1) Field name: Month(Applied alternate state2)

I want to show the sum sales in table 

1) if I select  month from fields then the sum should be Sum({"State1"} Sales) + Sum({"State2"} Sales)

2) if no selection on month then Sum(Sales)

My expression is if(getselectedcount(month) >1, Sum({"State1"} Sales) + Sum({"State2"} Sales), sum(sales)).

the result is Sum(sales) and it is not working for selected months.

Regards,

Ramki.

Labels (1)
  • SaaS

1 Reply
MayilVahanan

HI Ramki

Specify the alternate state in getselectedcount like below

=If(GetSelectedCount(Month, 1, 'State1') > 1

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.