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
RichelleZach
Frequent Visitor

Getting the latest record in the same table based on entry no.

Hi,

I am struggling in getting the latest row and I researched several topics but no luck of getting the correct formula.

I would like to check how to the last row value of the table below.

 

I have a ledger entry like this.

1st screen shot this is multiple entries and I want to get the final data which is the 2nd screenshot.

 

Power BI Record.jpgPower BI Record 1.jpg

 

I think this is easy but for some reasons I could not figure out.

 

I appreciate your help.

 

 

 

 

2 ACCEPTED SOLUTIONS
v-jayw-msft
Community Support
Community Support

Hi @RichelleZach ,

 

Create a mesure like below and add it to visual filter.

 

Measure = 
var maxdate = CALCULATE(MAX('Table'[date]),FILTER(ALLSELECTED('Table'),'Table'[NO.]=MAX('Table'[NO.])))
return
IF(SELECTEDVALUE('Table'[date])=maxdate,1,0)

 

1.PNG

2.PNG

 

Best Regards,

Jay

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

Thank you. I was able to figure out this.

 

Richelle

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @RichelleZach ,

 

Create a mesure like below and add it to visual filter.

 

Measure = 
var maxdate = CALCULATE(MAX('Table'[date]),FILTER(ALLSELECTED('Table'),'Table'[NO.]=MAX('Table'[NO.])))
return
IF(SELECTEDVALUE('Table'[date])=maxdate,1,0)

 

1.PNG

2.PNG

 

Best Regards,

Jay

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Thank you. I was able to figure out this.

 

Richelle

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.