Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
In this table I need to create a new calculted column that show the #User of the process 3 for all rows with the same TimeShiftBegin.
In this case, for the idProduction 74308 to 74314, it will be 401 in the new column.
Thanks
Solved! Go to Solution.
This calculated column should work:
#User = VAR CurrentTimeShift = Table[TimeShiftBegin] RETURN CALCULATE ( MAX ( Table[idUser] ), FILTER ( Table, Table[idProcess] = 3 && Table[TimeShiftBegin] = CurrentTimeShift ) )
Hi @Anonymous,
Based on my test, you could refer to below steps:
Sample data:
Create a new calculated column:
Column = CALCULATE(MAX('Table1'[iduser]),FILTER('Table1','Table1'[Time]=EARLIER(Table1[Time])))
Result:
You could also download the pbix file to have a view.
Regards,
Daniel He
This calculated column should work:
#User = VAR CurrentTimeShift = Table[TimeShiftBegin] RETURN CALCULATE ( MAX ( Table[idUser] ), FILTER ( Table, Table[idProcess] = 3 && Table[TimeShiftBegin] = CurrentTimeShift ) )