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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.