Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Selected Months or Days

Good day.

i am hoping that someone could point me in the right direction.

i have list boxes with Years, Months and Days. i need to determine if there are any months or days selected and how many are selected.

i have the following expression

Count(DISTINCT([Month]))

Count(DISTINCT([Day]))


if there are any months or days selected it gives me the correct count, but if none are selected it gives me the full count (eg. 12 months if none are selected)

how can i determine if any months or days are selected?

any help would be appreciated.

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try this functions.

Getselectedcount(FieldName)

GetPossibleCount(FieldName)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try this functions.

Getselectedcount(FieldName)

GetPossibleCount(FieldName)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Thank you so much Kaushik.

That is perfect.

Thank you so much for taking the time to help me.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Its a pleasure...

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!