Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I need to list the top 3 countries whose sales greater than sales of USA,here USA is selected from list box.Suppose if we select UK I need to display 3 countries whose sales greater than sales of UK....and so on.
List box contains 50 countries.
how we can achieve this output by using alternate state instead of set analysis.
Thanks
Swathi
yes
ok after loading the data
i created a list box and assigned it to alternate state
in this list box i allow only one selected value
the value in this list box is the reference country.
i than created a variable named vRefernceSale with this formula
=sum({Alternate1}Sales)
than in a straight table i chose country as the dimension
and used this expression
if(sum(Sales)>vRefernceSale,sum(Sales))
the last step is to define in the dimension limit
show 3 largest values
hi
have a look at the attach example
Oh unfortunately I am unable to open the qvw because I have personal edition in my desktop.Can you please share explanation here??
Thanks Swathi
yes
ok after loading the data
i created a list box and assigned it to alternate state
in this list box i allow only one selected value
the value in this list box is the reference country.
i than created a variable named vRefernceSale with this formula
=sum({Alternate1}Sales)
than in a straight table i chose country as the dimension
and used this expression
if(sum(Sales)>vRefernceSale,sum(Sales))
the last step is to define in the dimension limit
show 3 largest values
Thanku Liron