Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi everyone,
I'm sure this has been solved before but examples around the forums/web don't seem to match up for me. I'm trying to get a new column that:
- Checks if it is blank, if so, get the Target Date of its Parent as specified by Parent ID
- If not blank, just copy the Target Date over
The second part is simple but the first part I can't seem to figure out (it's kind of like LOOKUPVALUE but I think I need an EARLIER in a calculated column. Hopefully the board can help!
Solved! Go to Solution.
@brianlehr try following expression, add as a column
Desire Date = IF( ISBLANK( Table9[Target Date] ), LOOKUPVALUE( Table9[Target Date], Table9[ID], Table9[Parent ID] ), Table9[Target Date] )
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@brianlehr I believe you have relationship with parent table and with 1 to many, add following column in child table
Desire Column = IF ( ISBLANK(ChildTable[Target Date] ), ReLATED( ParentTable[Target Date] ), ChildTable[Target Date] )
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Actually this is all in the same table, though there is a Hierarchial relationship, with a path and so forth. So I dont think this answer would work.
@brianlehr yes in that case it will not work, can you share sample data and i'm sure it can be done.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Not sure how to attach files. Can you just copy the table below to excel and use that? IT doesnt have hierarchy technically but the ID, Parent ID relationship should be enough.
ID | Work Item Type | Parent ID | Title | Target Date |
123 | Parent | Parent Task 1 | 5/17/2019 | |
124 | Child | 123 | Child Task 1a | |
125 | Child | 123 | Child Task 1b | 4/3/2019 |
126 | Child | 123 | Child Task 1c | |
127 | Parent | Parent Task 2 | 4/12/2019 | |
128 | Child | 127 | Child Task 2a | 4/12/2019 |
129 | Child | 127 | Child Task 2b | 3/31/2019 |
130 | Child | 127 | Child Task 2c |
@brianlehr try following expression, add as a column
Desire Date = IF( ISBLANK( Table9[Target Date] ), LOOKUPVALUE( Table9[Target Date], Table9[ID], Table9[Parent ID] ), Table9[Target Date] )
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Works perfectly! Thanks so much.
User | Count |
---|---|
124 | |
108 | |
99 | |
62 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |