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
shinney
Helper I
Helper I

Possible to show only records of last update date for entire report?

My report contains multiple entries for the same person, with a time stamp of each time it got updated. This is messing up the overall license count, since it's summing up every single row, whereas I only need the latest updated rows. I would need this to apply to my entire report (ie. filters need to reflect this), so I can't just select the 'Latest' aggregate on the visuals.
So for example, if the data contains:

NameLicenseLast_Update
AlexEnterpriseJune 1, 2021
AlexStandardSept 1, 2021
BobStandardSept 15, 2021
CamEnterpriseSept 15, 2021
AlexProfessionalOct 1, 2021

I want only the last 3 rows should show up in my report & visuals.

 

Is this possible? Thanks.

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@shinney 

You could add a calculated column to your table to flag only the newest updates like this.

Is Newest Update = 
YourTable[Last_Update] = CALCULATE(MAX(YourTable[Last_Update]),ALLEXCEPT(YourTable,YourTable[Name]))

jdbuchanan71_0-1633554272362.png

Then apply a filter to your report for [Is Newest Update] = TRUE

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

@shinney 

You could add a calculated column to your table to flag only the newest updates like this.

Is Newest Update = 
YourTable[Last_Update] = CALCULATE(MAX(YourTable[Last_Update]),ALLEXCEPT(YourTable,YourTable[Name]))

jdbuchanan71_0-1633554272362.png

Then apply a filter to your report for [Is Newest Update] = TRUE

Thanks! I couldn't get the Calculate nor the Allexcept functions to work when I'm trying to insert the calculated column as suggested ... but your logic inspired a different formula:

NewestUpdate = If (Table[LastUpdate]=MAX(Table[LastUpdate),True,False).
 
I then added the filter for NewestUpdate is True on all pages and it seemed to work!

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.