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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Add first occurence of ID to new column

I have an issue with my current project. Unfortunately I'm not able to change my indata, so I have to do this in Power Bi. (Normally I would solve this in SQL but for this task I can't.)

 

My indata:

wiiilda_0-1602845960057.png

 

I'm using this DAX
responsible = CALCULATE ( FIRSTNONBLANK('Tabel'[date],1), ALLEXCEPT('Tabel', Tabel[id] ))

Output:

wiiilda_1-1602846000298.png

 

I would like the name of the first person added instead of the first date, how do I do that?

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Create a new column like

new column =
var _min = minx(filter(Table,[ID] = earlier([ID])),[Time assigned])
return
maxx(filter(Table,[ID] = earlier([ID]) && [Time assigned] =_min),[Assigned to])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
themistoklis
Community Champion
Community Champion

@Anonymous 

 

try the following formula:

First responsible =
VAR _min_date =
    CALCULATE (
        MIN ( Sheet1[Time assigned] ),
        FILTER ( Sheet1, Sheet1[ID] = EARLIER ( [ID] ) )
    )
RETURN
    MINX (
        FILTER ( Sheet1, [ID] = EARLIER ( [ID] ) && [Time assigned] = _min_date ),
        [Assigned to]
    )
amitchandak
Super User
Super User

@Anonymous , Create a new column like

new column =
var _min = minx(filter(Table,[ID] = earlier([ID])),[Time assigned])
return
maxx(filter(Table,[ID] = earlier([ID]) && [Time assigned] =_min),[Assigned to])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors