Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have made a bar chart before where I have to show Top 10 Stores for sales. The formula I used is as below:
Sum({<Store = {"=Rank(Sum(Sales))<=10"}>} Sales)
Now I am trying to find those stores which have achieved 90% of their targets and show there sales. I am trying the below formula which is not working:
Sum({<Store = {"=Sum(Sales)/Sum(Target) >=0.9"}>} Sales)
Pls. help what mistake I am making here.
TRy
Sum({<Store = {"=(Sum(Sales)/Sum(TOTAL <Store> Target)) >=0.9"}>} Sales)
or
Sum({<Store = {"=Sum(Sales) >= (Sum(Target)*0.9)"}>} Sales)
or
if(Sum(Sales)/Sum(Target) >=0.9,sum(Sales))
This should work..
SUM({<Store = {"=SUM(Sales)/SUM(Target)>=0.9"}>}Sales)
If this is not working, better if you can provide sample data or your sample application to test.
sum({<Store={"=sum(Sales)>=(sum(Target)*0.9)"}>} Sales)
It is same as what Vineeth suggested. 2nd one. If you have Targets per Store.
none working.
Provide sample data or sample application.
I have excluded the stores in two ways:
Please take a look at the attached file. Is that what you wanted to achieve?
attached file?
yes, I have attached a file and I can see it in QlikCommunity (https://community.qlik.com/message/1198310?et=watches.email.thread#1198310).
by the way if you use this: "=if(aggr(sum(Sales)/sum(Target), Store)>=0.9, Store)" as you ber chart dimension it should work.