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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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