Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
This is in continuation to a query I had got solution yesterday.
This worked fine for me.
Count({<Item_id={"=Sum(Sales) <> 0"}>} distinct Item_id)
The above works perfect for me.
Now I have to pass a variable in the set operator. Can you please suggest me on this.
Something as below, this doesn't work though
ount({<Item_id={"=Sum( {< Year = {"$(Max_Year"}>}Sales) <> 0"}>} distinct Item_id)
Thanks,
Venu
Try
Count({<Item_id={"=Sum( {< Year = {'$(=Max_Year)'}>}Sales) <> 0"}>} distinct Item_id)
May be this:
Count({<Item_id = {"=Sum({<Year = {"$(=Max_Year"}>}Sales) <> 0"}>} DISTINCT Item_id)
or
Count({<Item_id = {"=Sum({<Year = {"$(=$(Max_Year)"}>}Sales) <> 0"}>} DISTINCT Item_id)
Thanks for reply.
When I use a double quote within a double quote, the expression breaks and I also get no outputs in the chart.
I also tried using a chr(34) instead of the double quote, with a ' and & for the rest, but for some reason it doesn't get to work..
Any suggestions ?
Try
Count({<Item_id={"=Sum( {< Year = {'$(=Max_Year)'}>}Sales) <> 0"}>} distinct Item_id)
That's true, try without the inner double quote:
Count({<Item_id = {"=Sum({<Year = {$(=Max_Year)}>}Sales) <> 0"}>} DISTINCT Item_id)
or
Count({<Item_id = {"=Sum({<Year = {$(=$(Max_Year))}>}Sales) <> 0"}>} DISTINCT Item_id)
Also added the closing parenthesis which I missed in my first response
This worked as required.
Thanks a lot!!.
Thanks Sunny, the one from Antonio exactly worked.