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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

for the maximum timestamp per day per case ID and per assignment group

This is a sample below. Based on each ID and assignment group per day, I would like to sum the workload that has the maximum/latest timestamp.

 

 

IDWorkloadTimestampAssignment groupActivity
1121/01/2020 21:01:21abcdOpen
1-121/01/2020 22:01:21abcdreassigned
2121/01/2020 9:00:00aruvopen
1022/01/2020 9:00:00abcein progress
1122/01/2020 9:00:00abceassigned
7 REPLIES 7
amitchandak
Super User
Super User

@Anonymous , Try like

sumx(Summarize(Table,Table[Assignment],"_1", lastnonblankvalue(Table[Timestamp],sum(Table[Workload]))),[_1])
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

 

Try this measure

 

SumWorkload =

Var filtertable = CALCULATE(MAX('Table'[Timestamp]),FILTER (ALL('Table'),'Table'[ID] = MAX('Table'[ID]) && 'Table'[Assignment group] = MAx('Table'[Assignment group])))

RETURN
CALCULATE(sum('Table'[Workload]),FILTER('Table','Table'[Timestamp] = filtertable))
 
 
1.jpg
 
 

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Anonymous
Not applicable

Hi Harsh,

 

This solution gives me a blank. I have edited my question. 

Hi @Anonymous ,

 

I am getting this.

 

1.jpg

 

 

Can you share the expected output.

 

Regards,

Harsh Nathani

Anonymous
Not applicable

IDWorkloadTimestampAssignmentActivitySumWorkload
1121/01/2020 21:01:21abcdOpen-1
1-121/01/2020 22:01:21abcdReassigned-1
2122/01/2020 9:00:00aruvOpen2
1022/01/2020 9:00:00abceIn Progress2
1122/01/2020 9:00:00abceAssigned2

@Anonymous ,

 

Not clear with the logic.

 

How is Id 2 2 when you are adding workload.

 

Regrds,

HN

Anonymous
Not applicable

On day 22/01/2020 ID 1 has a workload contribution of 1, ID 2 has a workload contribution of 1, so in total the workload is 2. I want that to be reflected.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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