Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
)
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.