Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Sai78
Contributor III
Contributor III

Display the list box based on 4 different KPI's

I have a requirement that a list box which by default displays the unique cases by adding the 4 different KPIs(each KPI has different logic) ..KPI display counts ..but the list box displays the case #.

When the user clicks one KPI, the list box should display the cases according to that KPI.

If the user does not select any KPI, by default list box should display the total unique cases from all KPI's

Any insight would really help.

 

 

 

 

 

 

 

 

 

 

 

 

2 Solutions

Accepted Solutions
billbois
Creator
Creator

I'm not sure I understand correctly, but I think you'll need to set your list box's Field to an expression. Scroll down to the bottom of the Field list, select <Expression>, and the Edit Expression dialog will pop up. Your expression would be something like:

If(GetSelectedCount(KPI_1) = 1,

  KPI_1_Cases,

  If(GetSelectedCount(KPI_2) = 1,

      KPI_2_Cases,

      If(GetSelectedCount(KPI_3) = 1,

         KPI_3_Cases,

         If(GetSelectedCount(KPI_4) = 1,

            KPI_4_Cases,

            Cases))))

Just a guess.

View solution in original post

Sai78
Contributor III
Contributor III
Author

Thanks to your reply, I  figured  a solution 

The solution is to create five list boxes and, using actions, controlled the list box conditional display.

View solution in original post

2 Replies
billbois
Creator
Creator

I'm not sure I understand correctly, but I think you'll need to set your list box's Field to an expression. Scroll down to the bottom of the Field list, select <Expression>, and the Edit Expression dialog will pop up. Your expression would be something like:

If(GetSelectedCount(KPI_1) = 1,

  KPI_1_Cases,

  If(GetSelectedCount(KPI_2) = 1,

      KPI_2_Cases,

      If(GetSelectedCount(KPI_3) = 1,

         KPI_3_Cases,

         If(GetSelectedCount(KPI_4) = 1,

            KPI_4_Cases,

            Cases))))

Just a guess.

Sai78
Contributor III
Contributor III
Author

Thanks to your reply, I  figured  a solution 

The solution is to create five list boxes and, using actions, controlled the list box conditional display.