Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
kris_vliegen
Partner - Creator III
Partner - Creator III

Number of

Hi all,

I have a little question. Is there a possibility to count the number of values i a bar-chart?

I have this graph and I would like to see the top(n) in the caption.

Now I work with getselectedcount but it counts only the values of Jul/2014 (set analysis)

noofrows.JPG

Regards,

Kris

7 Replies
PrashantSangle

Hi,

Use =count(distinct Kaart)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
francoiscave
Partner - Creator III
Partner - Creator III

Hi Kris,


Getselectedcount returns the current number of selected values in a field.

If IncludeExcluded is true the count will include selected values, which are currently excluded by selections in other fields. If false or omitted these values will not be included.

Can you try with Getselectedcount(field, true()) ?

Or use an other Chart Field functions or use count(distinct Kaart) function.

Have fun with QV,

François

kris_vliegen
Partner - Creator III
Partner - Creator III
Author

Hi,

I would like to see Top 5 in my caption.

If I use =Getselectedcount(Firmakaart, true())  then I get 0

If I use =count(distinct Firmakaart) I get 0.

The problem is that I have 2 Expressions with set analysis and He give me only the number of the first expression...

Regards,

Kris

francoiscave
Partner - Creator III
Partner - Creator III

Kris,

Can you send a sample app.

It will be easier to help you on your chart.

François

kris_vliegen
Partner - Creator III
Partner - Creator III
Author

Here is my app.

I would like to see "Top 5" in the caption

Regards,

Kris

francoiscave
Partner - Creator III
Partner - Creator III

Kris,

I have "Top 5" in the caption...

I've used this expression:

='Top ' & Count(Distinct Firmakaart)& ' ' & Only({<Index={163}>} Data) & ' (' & Only({<Index={37}>} Data)  & ')'

='Top ' & GetPossibleCount(Firmakaart)& ' ' & Only({<Index={163}>} Data) & ' (' & Only({<Index={37}>} Data)  & ')'

It's what do you expect ?

François

kris_vliegen
Partner - Creator III
Partner - Creator III
Author

Yes, but If you select _Calyear = 2014 and _CalMonth = jul

Then you have 4 cards fur jul and 4 for jun.

And in total you have 5 Cards in the graph.