Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Not applicable

get sum value from SAPCode that have it to each suppliers & group by supplier

Hi All,

i want to ask something from my problem.

i want to get sum value from SAPCode that have it to each suppliers and group by supplier.

for data  sample

table.png

and want to get the result

result.png

currently i've get the list SAPCode that matched for each supplier and only 2

list sapcode that matches.png

with editor expression and use variable

Aggr(if ($(var_CountGroupBySupplier) = $(var_TotalSupplierBaseOnSAPCode), SAPCode), SAPCode)

variable var_CountGroupBySupplier  =    Count(   Supplier )

variable var_TotalSupplierBaseOnSAPCode = Count( distinct  TOTAL Supplier)

and for count match SAPCode that is matched  is 2,

count sapcode that matched.png

how i can get sum value from SAPCode that have it to each suppliers and group by supplier?

1 Solution

Accepted Solutions
MVP
MVP

Re: get sum value from SAPCode that have it to each suppliers & group by supplier

Try this expression:

Sum({<SAPCode  = {"=Count(Distinct Supplier) = Count(TOTAL DISTINCT Supplier)"}>}Value)

Capture.PNG

2 Replies
MVP
MVP

Re: get sum value from SAPCode that have it to each suppliers & group by supplier

Try this expression:

Sum({<SAPCode  = {"=Count(Distinct Supplier) = Count(TOTAL DISTINCT Supplier)"}>}Value)

Capture.PNG

Not applicable

Re: get sum value from SAPCode that have it to each suppliers & group by supplier

Thanks Sunny,

it's work