Forum Discussion

OlapOffice's avatar
OlapOffice
Icon for Helper II rankHelper II
5 years ago

Last Reporting Date

I am trying to ensure that the "Last Reported Date" always shows the max date for the last LASTNONBLANK. In the example below you will note this should be 9/30/2020 but I have an account with 12/31/2020. How do I force all to be 9/30/2020? Any ideas would be welcome. I have included the DAX used below the image.

 

Thanks in advance.

 

PreviousDataDate =
IF (
NOT ISEMPTY ( Data ),
VAR EarliestPeriodDate =
MIN ( 'Date'[Calendar Date] )
VAR PreviousReportingDate =
CALCULATE (
LASTNONBLANK (
'Data'[DataDate]
,[Amount]
)
,'Date'[Calendar Date] < EarliestPeriodDate
)

1 Reply

  • I don't see 12/31/2020 anywhere? Can you please explain?