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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Fabs(), Sum() & Total()

Dear community,

I am trying to accumulate percentages in a column for absolute values.

Total (Fabs).JPG

As you can see, the expression in the right column isn't working properly, it seems

like the TOTAL is still the Sum of the values that are not absolute.

Those are my expressions:

Sum({$< [FS Item] = {1180000}>}[Period Value GC])                (left column, values)

fabs(Sum({$< [FS Item] = {1180000}>}[Period Value GC]))       (mid column, absolute values)

Num(fabs(sum({$< [FS Item] = {1180000}>}[Period Value GC])) / fabs(sum({$< [FS Item] = {1180000}>} Total [Period Value GC])), '#,##%')                                                                                    

(right column, where I'd like to get the accumulated percentage values, it shouldn't go beyond 100%)
                                                                                                 

I think there might be problem with nested aggregation, I don't know how to fix it though.

Thank you in advance!

Best regards,

Mats

21 Replies
Anonymous
Not applicable
Author

Hi suni,

thank you for your suggestions.

Unfortunately, none of these work.

Seems like there is a problem with the first one.Capture.JPG

For the second one, QlikView just adds up all values, so it doesn't recognize the set expression either.

Capture2.JPG

Really weird.

Sergey_Shuklin
Specialist
Specialist

Hello, Mats!

For cumulated values you can try to use a RangeSum() function. You can look here for clues:

Running count in percentage of