Forum Discussion
Match two columns and return value from 3rd column in same table
- Anonymous4 years ago
Hi jennd ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want. You can create two calculated columns as below:
Parent Work Item Title = CALCULATE ( MAX ( 'Table'[Work Item Title] ), FILTER ( 'Table', 'Table'[Item ID] = EARLIER ( 'Table'[Parent Work Item ID] ) ) )Parent Work Item Type = CALCULATE ( MAX ( 'Table'[Work Item Type] ), FILTER ( 'Table', 'Table'[Item ID] = EARLIER ( 'Table'[Parent Work Item ID] ) ) )If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards
Hi jennd ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want. You can create two calculated columns as below:
Parent Work Item Title =
CALCULATE (
MAX ( 'Table'[Work Item Title] ),
FILTER ( 'Table', 'Table'[Item ID] = EARLIER ( 'Table'[Parent Work Item ID] ) )
)Parent Work Item Type =
CALCULATE (
MAX ( 'Table'[Work Item Type] ),
FILTER ( 'Table', 'Table'[Item ID] = EARLIER ( 'Table'[Parent Work Item ID] ) )
)
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards
That worked! Thank you so much!