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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors