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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Lastdate

Hello Team,

 

I need help creating a table to show the last balance for my products. My table looks like the below:

 

DateDescriptionBalance
11/11/2022A30
11/11/2022B25
10/11/2022C25
01/11/2022D20
20/10/2022A25
20/10/2022B20
19/10/2022C30
17/10/2022D21
08/09/2022A19
08/09/2022B19
07/09/2022C20
07/09/2022D18
07/09/2022E22

 

I need an answer like below:

 

DateDescriptionBalance
11/11/2022A30
11/11/2022B25
10/11/2022C25
01/11/2022D20
07/09/2022E22

 

I tried using the lastdate function but it is not working. Any idea?

 

Thank you.

 

Kind Regards,

 

Hasvine

1 ACCEPTED SOLUTION
AbbasG
Memorable Member
Memorable Member

4 REPLIES 4
Anonymous
Not applicable

Hi  @Anonymous ,

 

Here are the steps you can follow:

1. Create calculated table.

Table 2 =
FILTER(
    ALL('Table'),
    'Table'[Date]=MAXX(FILTER(ALL('Table'),'Table'[Description]=EARLIER('Table'[Description])),[Date]))

vyangliumsft_0-1668405354038.png

2. Result:

vyangliumsft_1-1668405354041.png

 

Best Regards,

Liu Yang

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

AbbasG
Memorable Member
Memorable Member

Anonymous
Not applicable

Hi AbbasG,

 

I appreciate your help.

 

It works fine. However, if you have two transactions on the same date the table shows both transactions.

 

Example:

 

DateDescriptionBalance
17/11/2022A25
17/11/2022A30

 

I need to show the latest. Is there a way?

 

Many thanks for your help.

 

Kind Regards,

 

Hasvine

 

 

 

@Anonymous per my experience, there should be some data point basis on which we can identify the latest transaction. for example time stamp or a combination of date and time instead of just date.

 

Does your data have something like that??

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.