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
Anonymous
Not applicable

Max date filtering in measure to show last record string

Hei!

exampleissue.PNG

I have a table lookinbg like the picture above. The records save the summary per reporting period for each time a user makes changes.

 

I have a way to get the final record for each period with a flag of 1:

Maxdate = calculate(max(modified_on); filter(table, reporting_period))

Lastrecordflag = if(max(modified_on)= maxdate;1;0)

 

I want to show in a card the final summary (based on modified_on and the flag above) for the last period available on the page.

 

For example, now I would see Texte 1.11 since that is the final version of the final period (6). However, if I choose in the slicer period 5, then I will see Text 1.6. So the summary showing will always the the last one available given the data on the page.

 

I have tried many different versions but not getting it right.

test =
var datemax = MAX(reporting_period)
return CALCULATE(MAX(summary);filter(table;and([Lastrecordflag]=1;reporting_period=datemax)))

 

1 REPLY 1
Anonymous
Not applicable

I am actually trying to show only the summary in a table not card (since I want it left aligned. Thought this might be important to mention since the behavior can be different.

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.