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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to fill a column on matching ID

Hi there,

 

I have a single table ("Issues") that contains the following fields:

* Key (PK)

* Issue Type

* Epic Link

* Parent Link

 

Currently, for all Keys where Issue Type = "Epic", there's a record for "Parent Link." What I'd like to accomplish is to have a new column that populates the Parent Link for all Keys, including where Issue Type is Story.

 

Here's an example:

  • In the top table, you'll see ADV-1103 has is Issue Type "Epic" and so has Parent Link SI-45.
  • The bottom table shows all the Stories that have Epic Link ADV-1103. I have a custom column called Strategic Initiative that I'd like to return SI-45 for every record shown since the Epic Link is the same.

Capture.PNG

Here's the Dax I currently have for my custom column. But as you can see, it's not yielding the intended result.

Strategic Initiative = 
CALCULATE(MAX(Issues[Parent Link]),
FILTER(ALL(Issues), Issues[Key]=EARLIER(Issues[Key])))

 

Any help would be appreciated. Thank you!!

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

It looks like you just need to look up the Epic Link rather than the Key.

 

Strategic Initiative =
CALCULATE (
    MAX ( Issues[Parent Link] ),
    FILTER ( ALL ( Issues ), Issues[Key] = EARLIER ( Issues[Epic Link] ) )
)

 

View solution in original post

2 REPLIES 2
AlexisOlson
Super User
Super User

It looks like you just need to look up the Epic Link rather than the Key.

 

Strategic Initiative =
CALCULATE (
    MAX ( Issues[Parent Link] ),
    FILTER ( ALL ( Issues ), Issues[Key] = EARLIER ( Issues[Epic Link] ) )
)

 

Anonymous
Not applicable

That did it - thank you so much!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.