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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
krixtsup3r
Helper V
Helper V

Getting the last available data in column

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:

 

krixtsup3r_0-1656125697057.png

The highlighted column is the one that I am trying to achieve. 

 

Ideally this should how my table would look like. 

krixtsup3r_1-1656125725538.png

Thank you!!

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@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])

View solution in original post

2 REPLIES 2
krixtsup3r
Helper V
Helper V

This works! Thank you!

amitchandak
Super User
Super User

@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])

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.