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

Sum with condition in expression of the bar chart.

Dear,
I need some help in expression chart.

My case:
I need to do a sum with condition on the bar chart.
For example:
I need to do the sum of the ITEM AOP and subtract the sum of ITEM ACT.
In this example the results must be 1.

ITEMValue
ACT100
ACT20
ACT40
AOP110
AOP21
AOP30


Tks Regards

1 Solution

Accepted Solutions
Not applicable
Author

Your expression must be:

Sum({<ITEM={'AOP'}>} Value) - Sum({<ITEM={'ACT'}>} Value)

Hope this help you. Regards.-

View solution in original post

2 Replies
Not applicable
Author

Your expression must be:

Sum({<ITEM={'AOP'}>} Value) - Sum({<ITEM={'ACT'}>} Value)

Hope this help you. Regards.-

Not applicable
Author

great. you went too fast

Thanks very much !!