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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.