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: 
user467341
Creator II
Creator II

Qlik Sense calculation condition in data handling

Hi.

I am trying to use "Calculation condition" in "Data Handling" for my pie chart. I used this formula:

=IF(COUNT(cat_id)>0,1,0)

When cat_id is more than 1, the pie chart still show

user467341_0-1689912370128.png

 

Is there a problem with my formula?

Labels (3)
1 Solution

Accepted Solutions
marcus_sommer

No if() is needed just: COUNT(cat_id) should work for the purpose. Before applying it in the condition check the results within a text-box. Maybe you queried the wrong field respectively misspelled the wanted one - Qlik is case-sensitive for all table/field/variable-names.

View solution in original post

3 Replies
PrashantSangle

Remove else part and try

if(count(cat_id)>0,1)

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 🙂
user467341
Creator II
Creator II
Author

Hi, seems like it is still the same.

marcus_sommer

No if() is needed just: COUNT(cat_id) should work for the purpose. Before applying it in the condition check the results within a text-box. Maybe you queried the wrong field respectively misspelled the wanted one - Qlik is case-sensitive for all table/field/variable-names.