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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Mahmoodul
Helper I
Helper I

Need to calculate single column from multiple column based on MAX ETA

I need to calculate Top most part based on Max eta(eta is nothing but date coulnm), Please, Can anyone help mescreenshot.png

Below output will be required

output.png

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Mahmoodul , for date you can use Max - ETA

 

Comment you can have measure like

 

Measure =
VAR __id = MAX ('Table'[top_most_part] )
VAR __date = CALCULATE ( MAX('Table'[eta] ), ALLSELECTED ('Table' ), 'Table'[top_most_part] = __id )
CALCULATE ( Max ('Table'[comments] ), VALUES ('Table'[top_most_part] ),'Table'[top_most_part] = __id,'Table'[eta] = __date )

 

 

OCB = Sum(Table[OCB])

View solution in original post

2 REPLIES 2
Mahmoodul
Helper I
Helper I

@amitchandak : Thank you for reply, Its working fine for me.Thanks alot.

amitchandak
Super User
Super User

@Mahmoodul , for date you can use Max - ETA

 

Comment you can have measure like

 

Measure =
VAR __id = MAX ('Table'[top_most_part] )
VAR __date = CALCULATE ( MAX('Table'[eta] ), ALLSELECTED ('Table' ), 'Table'[top_most_part] = __id )
CALCULATE ( Max ('Table'[comments] ), VALUES ('Table'[top_most_part] ),'Table'[top_most_part] = __id,'Table'[eta] = __date )

 

 

OCB = Sum(Table[OCB])

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.