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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
jdevalk77
Frequent Visitor

New column based on MAX[Date] in other column

I have 3 tables, [resource] -> [timesheet] -> [project]

Resource table:

IDResource
1Paul
2Frank


Timesheet table:

ResourceIDProjectIDDate
1627.11.2023
2727.11.2023
1828.11.2023
2928.11.2023


Project table:

IDProjectName
6SE blablabla
7TE blablabla
8UE blablabla
9VE blablabla


Now I'd like to add a column to the reource table with the left 2 characters of the latest ProjectName they've worked on. So in case of Paul, it would result in "UE" and in case of Frank it would result in "VE"
Can anyone help me with the column DAX formula?

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

3 REPLIES 3
jdevalk77
Frequent Visitor

It's not working as it is not the MAX[projectname]. It should be the projectname where they worked on the latest.

Anyone?

which is not what was asked, I did it.
if you need the full name of the project, just write it like this

Screenshot_1.png

Ahmedx
Super User
Super User

pls try

Screenshot_2.png

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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