Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
claudialet
Contributor III
Contributor III

Can you aggr () on a Total column ?

 Please see attached qvf. 

 

There is an auto generated 'Total' column.   

For row 'yellow' - how do I return the total sum of row 'red'  + row 'purple' instead ?   Should be returning 19.7

Capture.JPG

 

 

1 Solution

Accepted Solutions
sunny_talwar

Do you want one of these?

image.png

Top chart expression

If(Description = 'yellow', Sum(TOTAL {<Description = {'red', 'purple'}>}Amount * Rate), Sum(Amount * Rate))

Bottom chart expression

If(Description = 'yellow' and SecondaryDimensionality() = 0, Sum(TOTAL {<Description = {'red', 'purple'}>}Amount * Rate), Sum(Amount * Rate))

View solution in original post

3 Replies
Channa
Specialist III
Specialist III

in that case what you do about South 6.3

Channa
claudialet
Contributor III
Contributor III
Author

 That value is to be not displayed. 

Only need to fix 'Total' column . Please help !

sunny_talwar

Do you want one of these?

image.png

Top chart expression

If(Description = 'yellow', Sum(TOTAL {<Description = {'red', 'purple'}>}Amount * Rate), Sum(Amount * Rate))

Bottom chart expression

If(Description = 'yellow' and SecondaryDimensionality() = 0, Sum(TOTAL {<Description = {'red', 'purple'}>}Amount * Rate), Sum(Amount * Rate))