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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

calculate sum of amount for below

Hi Guys

Can any help me on this

I want to calculate the sum of X and Y,

Header 1Header 2Header 3Header 4Header 5
Project CodeRej_codeTask IDX amountY amount
12345AAAAauto generated100101
BBBBauto generated102103
CCCCauto generated104105
DDDDauto generated106107

As explained in above table   for Project code have 5 REJ CODES and task id is auto genrated. Here I want to calculate X amount which is related to REJ code AAAA or BBBB and TASK ID matches the REJ code AAAA or BBBB.

Same case to calculate Y as well.

Please help me

Thanks

Srini

1 Reply
sunny_talwar

May be this:

Sum({<Rej_code = {'AAAA', 'BBBB'}, TASK_ID = P({<Rej_code = {'AAAA', 'BBBB'}>})>}[X amount])

Sum({<Rej_code = {'AAAA', 'BBBB'}, TASK_ID = P({<Rej_code = {'AAAA', 'BBBB'}>})>}[Y amount])