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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
hiren89vora
Frequent Visitor

Calculate Table Formula

Hi All,

 

Can you please help me with the below requirement.

 

I have existing table(Table_1) with below details but need to create calculated table which has max date from each id.

 

(Table_1)

IdAmountDate
120100731-Dec-19
117594730-Sep-19
119830030-Jun-19
2787231-Dec-19
2755130-Sep-19
2694630-Jun-19
32408731-Mar-20
32408731-Dec-19
32251330-Sep-19
33276730-Jun-19
43226031-Dec-19
44493330-Sep-19
43711330-Jun-19
51270731-Dec-19
52153330-Sep-19
51534730-Jun-19

 

Required Table

IdAmountDate
120100731-Dec-19
2787231-Dec-19
32408731-Mar-20
43226031-Dec-19
51270731-Dec-19

 

@calculated table

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@hiren89vora 

pls try this

Table 2 = ADDCOLUMNS( SUMMARIZE('Table','Table'[Id],"date",max('Table'[Date])),"amount",maxx(FILTER('Table','Table'[Id]=EARLIER('Table'[Id])&&'Table'[Date]=EARLIER([Date])),'Table'[Amount]))

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
ryan_mayu
Super User
Super User

@hiren89vora 

pls try this

Table 2 = ADDCOLUMNS( SUMMARIZE('Table','Table'[Id],"date",max('Table'[Date])),"amount",maxx(FILTER('Table','Table'[Id]=EARLIER('Table'[Id])&&'Table'[Date]=EARLIER([Date])),'Table'[Amount]))

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors