Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Use Set Analysis

hi,

How transpormar following expression to set analysis ? For the exposed form generates the incorrect value, why not obey selection of products.

sum (if (ProductName = 'CAPPUCPRONTO'), Vol_Umb/12, Vol_Kg)

Thank you!

2 Replies
shree909
Partner - Specialist II
Partner - Specialist II

Hi use this

=sum ({<ProductName ={'CAPPUCPRONTO'}>} Vol_Umb/12, Vol_Kg)

is 

Vol_Umb/12, Vol_Kg is one filed or 2 fields...  for one field it works fine

if it is 2 fields use the aggregation..

Aggr(sum ({<ProductName ={'CAPPUCPRONTO'}>} Vol_Umb/12), Vol_Kg)

if not clear please post a sample of file with fields names..

Not applicable
Author

hi,

Are two distinct fields.

The expression did not show any results.

I managed to solve the following expression, not very elegant, but gave the correct result.

=sum({$<Nome_Familia1 = {"CAPPUCPRONTO"}>} Vol_Liq_Umb/12 ) + sum({$<Nome_Familia1 -={"CAPPUCPRONTO"}>} Vol_Liq_Kg)