Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Serena07
Contributor II
Contributor II

To select number of months in the table under - DATA HANDLING

Hi all,

I have to write an expression for selecting only 3 to 4 months in the table.

like to fix a number max of months selected.

If  the number is exceeded, we must display a message in place of the pivot table, something like “Please reduce the number of months to display the data”

Serena07_2-1629899002390.png

Can someone please help what to write in the Calculation Condition. in it i can see the following get functions..

Serena07_3-1629899132313.png

 

Labels (1)
3 Replies
arulsettu
Master III
Master III

Maybe like this

 

If(GetSelectedCount(Month)>4,'Please reduce the number of months to display the data')

Kushal_Chawda

@Serena07  In calculated condition put below

=getselectedcount(Month)<=4

In displayed msg put your message

Serena07
Contributor II
Contributor II
Author

hi, Kaushal i tried this only

Serena07_0-1629963601917.png

but when I selected the Year 2020, the pivot table is not showing the message.

Serena07_1-1629963635625.png