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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
agni_gold
Specialist III
Specialist III

Need Summation logic at set analysis

Hi Friends,

I have a situation  ,

Where i want to show only data for below condition

Negative MACO and Positive Vol , attaching my sample data also .

It is required to do this at frontend  level.

16 Replies
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Maybe this could help?

Screenshot_1.jpg

vinieme12
Champion III
Champion III

Try as below

sum({<Account = {'Maco'} , Value = {"<0"}>}Value)

sum({<Account = {'Vol'} , Value = {">0"}>}Value)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
agni_gold
Specialist III
Specialist III
Author

in a single condition , it is not possible ?

agni_gold
Specialist III
Specialist III
Author

I need here , only to come one row for vol which is

A ------------   3

vinieme12
Champion III
Champion III

what exactly do you want to evaluate? please clarify

sum({<Account = {'Maco'} , Value = {"<0"}>}Value)

+

sum({<Account = {'Vol'} , Value = {">0"}>}Value)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
agni_gold
Specialist III
Specialist III
Author

I need here , only to come one row for vol which is

A ------------   3

which is satisfying below condition

Negative MACO and Positive Vol


vinieme12
Champion III
Champion III

SUM( if((Account = 'Maco' AND Value <0) OR (Account='Vol' and Value > 0 ),Value) )

or

sum({<Account = {'Maco'} , Value = {"<0"}>}Value)

+

sum({<Account = {'Vol'} , Value = {">0"}>}Value)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
agni_gold
Specialist III
Specialist III
Author

Not working

vinieme12
Champion III
Champion III

Works for me

242427.PNG

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.