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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors