Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ArchStanton
Impactful Individual
Impactful Individual

Date Error in Measure

Hi,

 

The Measure below is producing the error message in yellow below it. 

 

Cases_Reopened = 
    VAR _lastdate = 
            CALCULATE(MAX('BAU Closures'[Month].[Date]),
            FILTER('BAU Closures','BAU Closures'[Cases Reopened] <> BLANK() )
            )
    RETURN
        CALCULATE(
                MAX('BAU Closures'[Cases Reopened]),
                FILTER ('BAU Closures','BAU Closures'[Month] = _lastdate)
        )

 

ArchStanton_2-1690456351245.png

 

I've hidden the columns in the excel below. I just want to show the last Value in the Cases Reopened (V) column that is Not Blank.

BAU Closures Month Date is Col A below.

ArchStanton_1-1690456199748.png

Any ideas why this is happening and how to fix?

 

Thanks,

1 ACCEPTED SOLUTION
mlsx4
Memorable Member
Memorable Member

Hi @ArchStanton 

 

Can you remove the .[Date]?

CALCULATE(MAX('BAU Closures'[Month].[Date]),

 I think it is causing the problem

View solution in original post

2 REPLIES 2
mlsx4
Memorable Member
Memorable Member

Hi @ArchStanton 

 

Can you remove the .[Date]?

CALCULATE(MAX('BAU Closures'[Month].[Date]),

 I think it is causing the problem

ArchStanton
Impactful Individual
Impactful Individual

I removed the Date earlier and re error lines appeared in the RETURN part of the measure. 
Typically, I've just removed Date again and no error messages1 Bizarre.

 

Thankyou!! much appreciated.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.