Hi everyone! Just wanna ask for help on creating a calculated column that would get the Last Project & date of a user in the table. Below how it looks:
The highlighted column is the one that I am trying to achieve.
Ideally this should how my table would look like.
Thank you!!
Solved! Go to Solution.
@krixtsup3r , New columns
Last Proj =
var _date = maxx(filter(Table, [User_id] = earlier([user_id]) && [Date] < earlier([Date]) && [Project] <> EARLIER([Project])),[Date])
return
maxx(filter(Table, [User_id] = earlier([user_id]) && [Date] =_Date && [Project] <> EARLIER([Project])),[Project])
Last Date = maxx(filter(Table, [User_id] = earlier([user_id]) && [Date] < earlier([Date]) && [Project] <> EARLIER([Project])),[Date])
This works! Thank you!
@krixtsup3r , New columns
Last Proj =
var _date = maxx(filter(Table, [User_id] = earlier([user_id]) && [Date] < earlier([Date]) && [Project] <> EARLIER([Project])),[Date])
return
maxx(filter(Table, [User_id] = earlier([user_id]) && [Date] =_Date && [Project] <> EARLIER([Project])),[Project])
Last Date = maxx(filter(Table, [User_id] = earlier([user_id]) && [Date] < earlier([Date]) && [Project] <> EARLIER([Project])),[Date])
Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.
User | Count |
---|---|
102 | |
69 | |
47 | |
43 | |
41 |
User | Count |
---|---|
103 | |
57 | |
51 | |
48 | |
44 |