Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Subtracting in Set Analysis!!

Hi Experts,

Can someone tell me what's wrong with this syntax. I am trying to calculate a difference two values in set analysis?

=Max({$<Quality={'Timber'}>}USD_AMT*[Tons])-Min({$<Quality={'Pulp'}>}USD_AMT*[Tons])  to get total amount.

Request you to please look into this issue.

Thanks

Satyendra

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

I get the desired result.Thanks

View solution in original post

6 Replies
Anil_Babu_Samineni

Seems expression ok to me, What was the error?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
prma7799
Master III
Master III

Please some sample app 

Not applicable
Author

The expression seems ok to me. Could you be more specific on your issue?

Anonymous
Not applicable
Author

Hi,

I get the desired result.Thanks

ahaahaaha
Partner - Master
Partner - Master

Hi,

Perhaps your data in field [Quality] does not have the values 'Timber' or 'Pulp' that you use in Set Analysis expression? Then one term of expression has the value NULL and addition with NULL yields the result NULL.

And rightly, what is Max one selection ('Timber') you compare with the Min of another selection ('Pulp')?

Regards,

Andrey

Anil_Babu_Samineni

Good, Close this thread

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful