Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Community,
How to get Max value for 2 parametres.
Ex:
I want Count of X value with two parametres
EX: Count(Max(CurrentMonth, CurrentYear)X)
=COUNT({<Year = {'$(=Max(Year))'},Month = {"$(=Month(MakeDate(Year(Today()),Max({<Year = {'$(=Max(Year))'}>}Month))))"}>}X)
Hi,
Try like below,
Count({<CurrentMonth={"$(=Max(CurrentMonth)"}, CurrentYear={"$(=Max(CurrentYear)"}>}X)
Not really sure I understand your requirement, but may be this:
FirstSortedValue(X, -CurrentYear&CurrentMonth)
=COUNT({<Year = {'$(=Max(Year))'},Month = {"$(=Month(MakeDate(Year(Today()),Max({<Year = {'$(=Max(Year))'}>}Month))))"}>}X)