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

Logic issue in the Straight table

Hi All,

I have a straight table , calculating spend and MinSpend  KPI's. If Spend is   greater than MinSpend, those count of Resident names has to show in a Textbox.In the below example,i have 17 Resident names having spend > MinSpend.

What is the logic to show these counts in a text box.  .KPI Logics are mentioned below.

Spend.PNGAbove.PNG

Spend Logic: =if(sum(TotalPaid)>MinSpend,(sum(TotalPaid)),0)

MinSpend Logic:

411.15*count({<Community={'Holly Creek'}>}DISTINCT(Month))*count({<Community={'Holly Creek'}>}Distinct(Year))*count({<Community={'Holly Creek'}>}distinct(FirstName&LastName))+

9*count({<Community={'Someren Glen'}>}Distinct(ServDate))*count({<Community={'Someren Glen'}>}distinct(FirstName&LastName))+

268.83*count({<Community={'Clermont Park'}>}DISTINCT(Month))*count({<Community={'Clermont Park'}>}Distinct(Year))*count({<Community={'Clermont Park'}>}distinct(FirstName&LastName))

Thanks,

Krishna

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe like

=Sum( Aggr(

     If( Sum(TotalPaid) >

411.15*count({<Community={'Holly Creek'}>}DISTINCT(Month))*count({<Community={'Holly Creek'}>}Distinct(Year))*count({<Community={'Holly Creek'}>}distinct(FirstName&LastName))+

9*count({<Community={'Someren Glen'}>}Distinct(ServDate))*count({<Community={'Someren Glen'}>}distinct(FirstName&LastName))+

268.83*count({<Community={'Clermont Park'}>}DISTINCT(Month))*count({<Community={'Clermont Park'}>}Distinct(Year))*count({<Community={'Clermont Park'}>}distinct(FirstName&LastName)), 1,0)

, FirstName, LastName))

View solution in original post

2 Replies
swuehl
MVP
MVP

Maybe like

=Sum( Aggr(

     If( Sum(TotalPaid) >

411.15*count({<Community={'Holly Creek'}>}DISTINCT(Month))*count({<Community={'Holly Creek'}>}Distinct(Year))*count({<Community={'Holly Creek'}>}distinct(FirstName&LastName))+

9*count({<Community={'Someren Glen'}>}Distinct(ServDate))*count({<Community={'Someren Glen'}>}distinct(FirstName&LastName))+

268.83*count({<Community={'Clermont Park'}>}DISTINCT(Month))*count({<Community={'Clermont Park'}>}Distinct(Year))*count({<Community={'Clermont Park'}>}distinct(FirstName&LastName)), 1,0)

, FirstName, LastName))

Not applicable
Author

Thanks Stefan,

Its working.