Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Guys,
I have created a scatter plot based on Stores and the sales by the each store. I would like to know the count of stores that lie in each quadrant. Is this possible? Please let me know.
Best Regards,
Rony
Nope. Error in set modifier expression
What is your dimension name? Store? Stores?
Dimension name is Location.
My bad, it was missing couple parentheses
Count({<Location=
{"=(((avg({$<Year={'2019'}>}ASP))/(avg({$<Year={'2018'}>}ASP)))-1)<=0"}
>*<Location=
{"=(((avg({$<Year={'2019'}>}Volume))/(avg({$<Year={'2018'}>}Volume)))-1)<=0"}>}
distinct Location)
What about now?
Hi Anseg,
The expression is working fine. However, the count is coming as 0. Not sure why.
Rony
Hi Anseg,
Below is the expression I am using right now. I have expanded the ASP formula as the one I was using earlier was wrong.The expression is correct. However, the count is still not showing. Where am I going wrong? Please advise
Also attached is a screenshot of the expression page
Count({<Location= {"=$(=((Sum({$<Year={"2019"}>}Value)/Sum({$<Year={"2019"}>}Volume))/
(Sum({$<Year={"2018"}>}Value)/Sum({$<Year={"2018"}>}Volume))-1))
<=0"}>*<Location= {"=$(=(Sum({$<Year={"2019"}>}Volume)/Sum({$<Year={"2018"}>}Volume)-1))<=0"}>} distinct Location)
Rony
Okay my bad again, in my original reply I had the $(= but they shouldn't be there so you can remove them
Count({<Location=
{"=((Sum({$<Year={'2019'}>}Value)/Sum({$<Year={'2019'}>}Volume))/(Sum({$<Year={'2018'}>}Value)/Sum({$<Year={'2018'}>}Volume))-1)<=0"}
>*<Location=
{"=(Sum({$<Year={'2019'}>}Volume)/Sum({$<Year={'2018'}>}Volume)-1)<=0"}>}
distinct Location)
How is this?
This is perfect. Thanks a lot Anseg!!😊
Best Regards,
Rony