Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
rkpatelqlikview
Creator III
Creator III

Set expression by using the count

Dear Experts,

Hope you are doing great.

Please can any one help on below set expression.

Scenario:

There is 2KPI's. If KPI-1 % <=80 and KPI-2% <=80%. Here i want to show the store for review.

Condition for NoReview:  KPI-1 should be <20 and KPI-2>80

Condition for Review:  KPI-1 should be >=20 and KPI-2<=80

Example:

  ->    KPI-1-  28  (Greater than 20) it should be reviewed even KPI-2 greater than 80.

->     KPI-1 - 19 and KPI-2 81, NoReview. Because these two are satisfying the condition.

->      KPI-1 - 10 and KPI-2 - 75 . It should be Review. because KPI-2 less than 80. Even KPI-1 <20.

Here i want to show the count for review in text object.

count is 3. 3 should be in text object.

CapturKPI.PNG

I tried with below.But its not working.

=count({<KPI1={">20"},KPI2={"<80"}>})>} DISTINCT Store)

Thanks in advance!!

1 Solution

Accepted Solutions
joseph_morales
Creator III
Creator III

You can try this option:

Count({<KPI1={">=20"}>+<KPI2={"<=80"}>} DISTINCT Store)

Best Regards,
Joseph Morales

View solution in original post

5 Replies
Lisa_P
Employee
Employee

Try this

=count({<KPI1={">20"},KPI2={"<80"}>} DISTINCT Store)

joseph_morales
Creator III
Creator III

You can try this option:

Count({<KPI1={">=20"}>+<KPI2={"<=80"}>} DISTINCT Store)

Best Regards,
Joseph Morales
rkpatelqlikview
Creator III
Creator III
Author

Thanks for your great support Joseph,

But it's showing all the stores, not following the condition.

sunny_talwar

joseph.morales‌'s expression seems to be working for me

Capture.PNG

rkpatelqlikview
Creator III
Creator III
Author

Thanks Joseph,

Am extremely sorry. It was my script mistake. This is the perfect solution for my query.

Many thanks for your great help.