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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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