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

Show KPI column Totals Function Sum

Hi my Friends, i have the next expression FABS(if(sum({<[ACCNT_CODE]={"12*", "13*", "14*","32*", "33*", "34*","A*", "E*", "R*"}, [FUND]={"10*"}, [YearPeriod]={"<=$(=Year(DatePeriod))"}, [MonthYearPeriod]={"<=$(=max(MonthYearPeriod))"},[MonthPeriod]=>}[AMOUNT])<0,
sum({<[ACCNT_CODE]={"12*", "13*", "14*","32*", "33*", "34*","A*", "E*", "R*"}, [FUND]={"10*"}, [YearPeriod]={"<=$(=Year(DatePeriod))"}, [MonthYearPeriod]={"<=$(=max(MonthYearPeriod))"},[MonthPeriod]=>}[AMOUNT]),0)) in the table, when i use Totals Function the sum is wright

JASalinas_0-1604507987334.png

But when I want to use a KPI the sum is wrong

JASalinas_1-1604508282036.png

I need your help please and thank you in advanced.

 

Labels (3)
1 Solution

Accepted Solutions
MayilVahanan

Hi @JASalinas 

You are using "Sum" functionality in the chart to achieve your result instead of Auto.

In order to achieve the same result in the KPI, you can try with 
Sum(Aggr(ur expression, ACCNT_CODE))

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

3 Replies
ArnadoSandoval
Specialist II
Specialist II

Hi @JASalinas 

The formula appearing in your screenshot contains the Aggr() function, while the one posted in this topic does not; as they are not the same expression, I do not expect to get the same result.

hth

Arnaldo Sandoval
A journey of a thousand miles begins with a single step.
JASalinas
Creator
Creator
Author

No my friend, the first formula have //, I am doing test, the formula is wright in the post!...

MayilVahanan

Hi @JASalinas 

You are using "Sum" functionality in the chart to achieve your result instead of Auto.

In order to achieve the same result in the KPI, you can try with 
Sum(Aggr(ur expression, ACCNT_CODE))

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.