Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All
My Chart 1 Expression as below working fine :-
Sum({<year = {$(=Max(if(getselectedcount(year)=0,2015,year))-1)}
,
month = {"<=$(=Max({<year={$(=Max(if(getselectedcount(year)=0,2015,year)))}, sales = {'*'}>} month))"}
>} sales/$(Columndim89)/1000)
Now i like to replace sales with nET_PROFIT as below :-
Sum({<nET_PROFIT={"nET_PROFIT"}>}Amount)
I try below expression in chart 2 :-
Sum({<year = {$(=Max(if(getselectedcount(year)=0,2015,year))-1)}
,
month = {"<=$(=Max({<year={$(=Max(if(getselectedcount(year)=0,2015,year)))}, sales = {'*'}>} month))"}
>} ({<nET_PROFIT={"nET_PROFIT"}>}Amount)/$(Columndim89)/1000)
it does not work.
Paul
Not sure, but may be this?
Sum({<year = {$(=Max(if(getselectedcount(year)=0,2015,year))-1)}
,
month = {"<=$(=Max({<year={$(=Max(if(getselectedcount(year)=0,2015,year)))}, sales = {'*'}>} month))"}, nET_PROFIT={"nET_PROFIT"}
>} Amount/$(Columndim89)/1000)
my QV Doc
Not sure, but may be this?
Sum({<year = {$(=Max(if(getselectedcount(year)=0,2015,year))-1)}
,
month = {"<=$(=Max({<year={$(=Max(if(getselectedcount(year)=0,2015,year)))}, sales = {'*'}>} month))"}, nET_PROFIT={"nET_PROFIT"}
>} Amount/$(Columndim89)/1000)
Hi sunny
Thank you very much . The chart display the figure I need . So it must be correct . I can move on doing the report I need.
I will tick correct answer after I finish my dinner .
Paul
Sent from my iPhone
just to move this post to more recent post.