Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hello m using this expression getting result for max year but max month only on selection..
i have to use it on dashboard so cant use selection there..
what should i use there tried only() also
sum({<[CAL.Fiscal Year]={$(=MaxFiscalYearGL)},[CAL.Fiscal Month]={"=$(=max([CAL.Fiscal Month Num]))"}, BSubHead = {'CURRENT ASSETS'}>}[Closing Balance])
Hi,
Try this expression
=sum({$<[Fiscal Year] = {$(MaxFiscalYear),$(=Max([Fiscal Year])-1)}, [Fiscal Month] = {"$(=Month(max([Link Date])))"}, BSubHead = {'CURRENT ASSETS'}>}[Closing Balance])
Let me know this is what you required.
Regards,
Jagan.
Hi,
Try this expression
=sum({<[CAL.Fiscal Year]={$(=Year(Max(YourDateDimensionName))},[CAL.Fiscal Month]={"=$(=Month(max(YourDateDimensionName)))"}, BSubHead = {'CURRENT ASSETS'}>}[Closing Balance])
Hope this helps you.
Regards,
Jagan.
Hi,
Give a try with the below expression.
You may need to # or single quotes while using variables and expressions in set analysis.
sum({<[CAL.Fiscal Year]={'$(#=MaxFiscalYearGL)'},[CAL.Fiscal Month]={'=$(#=max([CAL.Fiscal Month Num]))'}, BSubHead = {'CURRENT ASSETS'}>}[Closing Balance])
Regards
Andrew Hudson
hi andrew...
giving the same result ![]()
Helo jagan,
actualy the problem is i have only calender date but here i need to work on fiscal terms derived fiscal month n year.
Hi,
Can you post some sample data or file you are working.
Regards,
Jagan.
Hi,
Try with this
sum({<[CAL.Fiscal Year]={$(=Max({1} [CAL.Fiscal Year]))},[CAL.Fiscal Month]={"=$(=max([CAL.Fiscal Month Num]))"}, BSubHead = {'CURRENT ASSETS'}>}[Closing Balance])
Celambarasan
same output as before ![]()
Hi,
you mentioned Max month only on selection that means?If not selected what type of output you need to get?
Celambarasan
current year current month
previous year current month
on dashboard without any selection