Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
PFA.
in text boxes I have shown it seems results are not showing properly for current year and Previous year.
We need to show the results for max year and max year - 1 for max month.
Please suggest.
Thanks
The in that case this is your corrected expression for current Year
=if((Sum({<Year={'$(=(max(Year)))'},Month_Num={"$(=max(Month_Num))"},Flag={'P&L_Actual'},PARTICULARS={'Net Revenue'}>}Data))
=0,
(Num(Sum({<Year={'$(=(max(Year)-1))'},Month_Num={"$(=max(Month_Num))"},Flag={'P&L_Actual'},PARTICULARS={'Net Revenue'}>}Data)*1000,'$ #,##0 K')),
(Num(Sum({<Year={'$(=(max(Year)))'},Month_Num={"$(=max(Month_Num))"},Flag={'P&L_Actual'},PARTICULARS={'Net Revenue'}>}Data)*1000,'$ #,##0 K'))).
check the screenshot
Regards,
Nadeem
Hi,
Syntax error is there
Correct syntax is
sum({<DOJ={$(=Max(Year)),$(=max(year-1))}>}sal)
Looks ok to me. Where exactly you are not seeing the data or not able to match to the source.
Loooks ok to me as you do not have data for 2018 it returns the correct result for 2017 .
Where do u find the problem .
Hi,
Thanks for the reply.
It seems it is not showing the results for maximum month number.
Regards,
Deepak
Hi,
if you Select what you have in Your Expression, you have this:
Your Expression is also a little bit strange if you only what to see previous and current max(year).
Can you tell us more what you expect?
The maximum month number for the the maximum year 2018 is April which does not have corresponding values in the Data field hence u are unable to see the values.
regards,
Nadeem
Hi,
For example
For 2017 max month is july so only data for july need to show.
For 2016 data only for Apr.
Thanks
The in that case this is your corrected expression for current Year
=if((Sum({<Year={'$(=(max(Year)))'},Month_Num={"$(=max(Month_Num))"},Flag={'P&L_Actual'},PARTICULARS={'Net Revenue'}>}Data))
=0,
(Num(Sum({<Year={'$(=(max(Year)-1))'},Month_Num={"$(=max(Month_Num))"},Flag={'P&L_Actual'},PARTICULARS={'Net Revenue'}>}Data)*1000,'$ #,##0 K')),
(Num(Sum({<Year={'$(=(max(Year)))'},Month_Num={"$(=max(Month_Num))"},Flag={'P&L_Actual'},PARTICULARS={'Net Revenue'}>}Data)*1000,'$ #,##0 K'))).
check the screenshot
Regards,
Nadeem