Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone,
When multiple selections are made on the data model,I just want to process the biggest one. The code structure looks like this:
((Sum({$<Year={"=$(=(Max(Year)))"}, Month={"<=$(=(Max(Month)))"}> } In_Qty)) -
(Sum({$<Year={"=$(=(Max(Year)))"}, Month={"<=$(=(Max(Month)))"}>} Out_Qty)))
For example, when I choose 2015-2016-2017-2018, I want sum of data for 2018. This code is included all the years.
Please help me.
May be try this (Remove the equal sign before the dollar sign expansion for Year's modifier
((Sum({$<Year={"$(=(Max(Year)))"}, Month={"<=$(=(Max(Month)))"}> } In_Qty)) -
(Sum({$<Year={"$(=(Max(Year)))"}, Month={"<=$(=(Max(Month)))"}>} Out_Qty)))
Hi Sunny
I think '=' sign before $ is not the correct way while using set analysis?
Sum({$<Year={"=$(=(Max(Year)))"}
I believe so... that is why I recommended to remove it.
Thanks
Hahahaha no problem
Thank you so much guys
İt works
Please close the thread