The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
)
I don't see 12/31/2020 anywhere? Can you please explain?
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
8 | |
8 |