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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.