Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sumproduct as part of Load

Hi All

I have a table loading that looks like the below : EXCEPT for Result this is the field in which I need to calculate on load.

So what I'd like is if there is any instance of TRAY = CJA and amount <>0 the all rows of data for application = SCC, and so on and forth.

I have the code and it will identify the instance of <>0 & CJA and Result = SCC but all other rows will be as per rest of code

Can anyone please advise ( this is related to this thread http://community.qlik.com/thread/99528 but I think I was asking wrong in the thread and misleading people)

Thanks
A

=IF(AND(D2>0,SUMPRODUCT(--($B$2:$B$25=B2),--($E$2:$E$25="CJACMP"))>0),"SCC",IF(AND(D2>0,SUMPRODUCT(--($B$2:$B$25=B2),--($E$2:$E$25="CJACMP"))=0),"Branch","Open"))


A               B               C               D          E                         F

TrayApplicationStatusAmountConcatenateResult
CJA12311111CMP200CJACMPSCC
CJA12311111RDY200CJARDYSCC
Good12311111CMP200GoodCMPSCC
Post Finish12311111CMP200Post FinishCMPSCC
Review12311111CMP200ReviewCMPSCC
Shop12311111CMP200ShopCMPSCC
Shop12311111RDY200ShopRDYSCC
Start12311111CMP200StartCMPSCC
Start12311111RDY200StartRDYSCC
CJA22222222CMP0CJACMPOpen
CJA22222222RDY0CJARDYOpen
Good22222222CMP0GoodCMPOpen
Post Finish22222222CMP0Post FinishCMPOpen
Review22222222CMP0ReviewCMPOpen
Shop22222222CMP0ShopCMPOpen
Shop22222222RDY0ShopRDYOpen
Start22222222CMP0StartCMPOpen
Start22222222RDY0StartRDYOpen
Good32122222CMP100GoodCMPBranch
Post Finish32122222CMP100Post FinishCMPBranch
Review32122222CMP100ReviewCMPBranch
Shop32122222CMP100ShopCMPBranch
Shop32122222RDY100ShopRDYBranch
Start32122222CMP100StartCMPBranch
0 Replies