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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Selection month

Hello

My problem "is simple" to a list box of months I want to know which have been selected and if within that selection this one in particular.

Ex: select.png

Select January, March, July, September, October, November and December, how I can know if this March, I selected?

I've tried all kinds of functions and it is impossible there is always some event that meets my condition.

Thanks for your help

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

Hi Antonio, try this:

 

=substringcount(concat(DISTINCT Mes),'mar')

If count =1  March is selected...

I hope you serve!

View solution in original post

9 Replies
awhitfield
Partner - Champion
Partner - Champion

Hi Antonio,

you need a field for 'Year' too!

Andy

Not applicable
Author

No need to know if this March within selected or is not.

awhitfield
Partner - Champion
Partner - Champion

If it's selected, it will show Green!

Andy

Not applicable
Author

Yes, I know.

But I want a variable for compare with other.

Anonymous
Not applicable
Author

Hi

every month in green color are selected,if you want to be sure you can do  a  test , creating a simple table with fields  you  need,once you confirmed  your  info delete the  table.

Regards

awhitfield
Partner - Champion
Partner - Champion

Sorry Antonio, but I really don't understanding what you are asking for! Can you expand / clarify your requirements?

Regards

Andy

Not applicable
Author

I need something like

Index(text(getfieldselections ( Mes, ', ')),'mar')

Not applicable
Author

Hi Antonio, try this:

 

=substringcount(concat(DISTINCT Mes),'mar')

If count =1  March is selected...

I hope you serve!

Not applicable
Author

Thanks so much, worked perfectly