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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
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))