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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
jade
Contributor III
Contributor III

Count data exclude values greater than less than

Hi guys! I need your help regarding this. So, I want to count only the data of the Pending ID Projects where I need to exclude only the Pencil and Paper that are less than $25M. I want to see only the count of all Flags that are more than $25 except for the Pencil and Paper which are less than $25M.

jade_1-1695009356490.png

 

Labels (4)
1 Solution

Accepted Solutions
PrashantSangle

add that flag too in set analysis

 

Count({<status={'Pending'}, Amount={"< 2500000"}, Flag={'Pencil','Paper'}>+<status={'Pending'}, Amount={"> 2500000"}, Flag-={'Pencil','Paper'}>}ID_Project)

or 

{<status={'Pending'}>}Count({<Amount={"< 2500000"}, Flag={'Pencil','Paper'}>+<Amount={"> 2500000"}, Flag-={'Pencil','Paper'}>}ID_Project)

 

Regards,

Prashant Sangle

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 🙂

View solution in original post

3 Replies
PrashantSangle

Considering you want to count ID_Project not flag

Try below 2 ways

1:

Count({<Amount={"> 2500000"},Flag-={'Pencil','Paper'}>}ID_Project)

+

Count({<Amount={"< 2500000"},Flag={'Pencil','Paper'}>}ID_Project)

2:

Count({<Amount={"< 2500000"},Flag={'Pencil','Paper'}>+<Amount={"> 2500000"},Flag-={'Pencil','Paper'}>}ID_Project)

 

Regards,

Prashant Sangle

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 🙂
jade
Contributor III
Contributor III
Author

It is also limited to Pending Status. This is for the KPI by the way

PrashantSangle

add that flag too in set analysis

 

Count({<status={'Pending'}, Amount={"< 2500000"}, Flag={'Pencil','Paper'}>+<status={'Pending'}, Amount={"> 2500000"}, Flag-={'Pencil','Paper'}>}ID_Project)

or 

{<status={'Pending'}>}Count({<Amount={"< 2500000"}, Flag={'Pencil','Paper'}>+<Amount={"> 2500000"}, Flag-={'Pencil','Paper'}>}ID_Project)

 

Regards,

Prashant Sangle

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 🙂