Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

chinmay7
New Contributor

Getselectedcount function not working with Dates fields

Nay alternative for Getselectedcount() function.I am using this function for getting count of date after selectedthe range of dates from Date picker extension.Extension is working fine.but getselectedcount of date is showing zero always.

Kindly help me resolve this.

Tags (1)
7 Replies
erik_wetterberg
Honored Contributor

Re: Getselectedcount function not working with Dates fields

Hi,

Can you see your selection in the selection toolbar? Have you verified the spelling of the field name in the GetSelectedCount() call??

Erik Wetterberg

Erik Wetterberg
https://extendingqlik.upper88.com/
chinmay7
New Contributor

Re: Getselectedcount function not working with Dates fields

yes spelling is correct

Re: Getselectedcount function not working with Dates fields

What happens if you use GetPossibleCount() instead ?

chinmay7
New Contributor

Re: Getselectedcount function not working with Dates fields

I am enabling table if getselected count of date is greater than 0.let me know how we can use getpossible count for this

Re: Getselectedcount function not working with Dates fields

In your expression simply replace GetSelectedCount with GetPossibleCount

erik_wetterberg
Honored Contributor

Re: Getselectedcount function not working with Dates fields

And the selection appears in the selection toolbar? Before switching to GetPossibleCount() (could be a good idea) you might want to read the documentation. What do you want to do? Force the user to make a selection in the date field or make any selection that restricts the date selection?

Erik Wetterberg

Erik Wetterberg
https://extendingqlik.upper88.com/

Re: Getselectedcount function not working with Dates fields

Also maybe create 2 Text objects, one to display the GetSelectedCount and the other GetPossibleCount, so you can easily see what values they return.

Community Browser