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: 
inigoelv
Creator
Creator

Problem with two variables

Hello:

I have problem with the use of two variables in a formula:

1) vReception= Aggr ( Sum ({<TYPE={"Reception"}>} Quantity) MonthYear, Supplier) . Per example: 25.000 kg

2) vClaim= Aggr ( Sum ({<TYPE={"Claim"}>} Quantity) MonthYear, Supplier) . Per example: 1000 kg

When I calcul in an expression:

%=$(vClaim)/$(vReception) the result is only the first formul: 1000 kg instead of 1000/25000= 0,04


The result is like only use the first formul an forget to divide by the second.

The table is:

MonthYearSupplierTypeQuantity
01/2013AReception25000
01/2013AClaim1000

Thanks in advance.

3 Replies
Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

see the attachment. It's what you want to do?

Regards

Aurélien

Help users find answers! Don't forget to mark a solution that worked for you!
inigoelv
Creator
Creator
Author

Thanks for your answer but I have an edition personal and can not open the file.

Could you explain it with words?

Best regards,

Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

test.png

And the expression is $(vClaim) / $(vReception)

Help users find answers! Don't forget to mark a solution that worked for you!