Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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 ) )
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
66 | |
59 | |
49 | |
36 | |
35 |
User | Count |
---|---|
86 | |
72 | |
58 | |
45 | |
44 |