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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
dhanu_today
Creator
Creator

Grouping help

Hi All,

I have the req below.

I have to show the the bifurgation of total amount into increase and decrease columns with respect to their id's.

But in the design level i have to show only the increase and decrease rate and no need to show the Ids.

The fields are coming from different tables.Help in design level is added adv.

Please find the attached doc for clarification.

Thanks

Dhanu

Message was edited by: dhanu today

1 Solution

Accepted Solutions
nirav_bhimani
Partner - Specialist
Partner - Specialist

Try to create a Flag in the script,

If (Amount>0, 'Inc', 'Dec') as Flag

Then used this condition in the Set Analysis like

Sum({<Flag={'Inc'}>}Amount) //for Increase

Sum({<Flag={'Dec'}>}Amount) //for Decrease

Hope this might resolved your problem

Regards,

Nirav Bhimani

View solution in original post

5 Replies
giakoum
Partner - Master II
Partner - Master II

see attached

dhanu_today
Creator
Creator
Author

Thanks Loannis...Its my bad..I dont have increase and decrease fields as input.

Rgds,

Dhanu

dhanu_today
Creator
Creator
Author

Any one is there !!!

Thanks,

Dhanu

Not applicable

Dhanu,

1) Either in SCRIPT  (if you want 3 fields)

LOAD Amount,

if(Amount > 0, Amount) as Increase,

if(Amount < 0, Amount) as Decrease

FROM xxxx

2) Or In the UI

expression Increase for ex: sum(if(Amount>0, Amount))

Fabrice

nirav_bhimani
Partner - Specialist
Partner - Specialist

Try to create a Flag in the script,

If (Amount>0, 'Inc', 'Dec') as Flag

Then used this condition in the Set Analysis like

Sum({<Flag={'Inc'}>}Amount) //for Increase

Sum({<Flag={'Dec'}>}Amount) //for Decrease

Hope this might resolved your problem

Regards,

Nirav Bhimani