Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
bbmmouha
Creator
Creator

difference between the two products

i have a problem and i need help

i'm a debutant

i have a dimension that contain products for exemple A B C D E F

i want to see the difference between the two products that he selected

for exemple if he selected A B

sum(A) - sum(b)

if he selected A C

sum(A) - sum(C)

thanks for help

1 Solution

Accepted Solutions
Gysbert_Wassenaar

You can do this using alternate states or using variables. See attached example.


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
MK_QSL
MVP
MVP

What is SUM(A)?

A is Product or any measure value?

bbmmouha
Creator
Creator
Author

thanks for reply

A is a product and i want to do sum <A> (sales) - sum <B> (sales)

Gysbert_Wassenaar

You can do this using alternate states or using variables. See attached example.


talk is cheap, supply exceeds demand
Anonymous
Not applicable

Hi,

You will have to use alternate states as you need to compare two selection from a unique field.

You can find some examples of how to use alternate states in the 'what's new in qlikview 11' demo document.

bbmmouha
Creator
Creator
Author

thanks thanks

this is what i want