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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Nothing
Frequent Visitor

Date aggregation lastdate vs max

Having an issue here with displaying the max date for each row in my matrix

 

When adding the date column as a value, it only gives me to aggregate it to count or count(distinct)

When trying to create a measure with lastdate e.g. LASTDATE(qualifications[valid_to_date]) it gives me an error "An invalid numeric representation of a date value was encountered"

When trying to create a measure with max e.g. max(qualifications[valid_to_date].[Date]) it gives me the max of the whole table rather than just the row

 

In the query editor the column im trying to aggregate is defined as Date/Time

 

Does anyone know where i'm going wrong? Any help would be appreciated

 

1 ACCEPTED SOLUTION

@v-shex-msft

 

Figured out the problem, it seems the measure should be MAX(table[date]) rather than MAX(table[date].[Date])

 

What a hassle!

View solution in original post

12 REPLIES 12

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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