Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
stark___
Contributor III
Contributor III

Listbox and formula in pivot table

Hello,

I need help.

I have two objects: listbox and pivot table.  Is it possible if I select something in listbox, my expression in pivot table will be, for example, sum(sales)*10 and if I don't select anything in my listbox, my expression will be,for example, sum(sales)+10?

Thank you, Stark

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like this

=if(Count(GetFieldSelections(FieldName))>0,Sum(Sales)*10,Sum(Sales)+10)

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

View solution in original post

2 Replies
MayilVahanan

Hi

Try like this

=if(Count(GetFieldSelections(FieldName))>0,Sum(Sales)*10,Sum(Sales)+10)

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

Thank you, it works perfetct.