Forum Discussion
Get value from another table using FILTER
Hello all,
I'm sure there is an easy way to do this but I can't seem to get the syntax right, please help!
I want to get a value from another related table but the search condition is based on whether the string in column "Code" in the current table is found within the "File Name" in the related table.
I started with the following:
I have also tried the following code:
Hi AliPoTD,
I'm guessing this is a calculated column you're adding to the ProceduresByJobRole table, based on the lack of aggregation in your DAX syntax. 😄
If so, try this out:Employee File Completion Date = VAR Filtered = FILTER ( 'Employee Files', FIND ( ProceduresByJobRole[Procedures.Course Code], 'Employee Files'[EmployeeFileName],, -1 ) <> -1 ) VAR Result = MINX ( Filtered, 'Employee Files'[Completion Date] ) RETURN Result
----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)
1 Reply
- Wilson_Memorable Member
Hi AliPoTD,
I'm guessing this is a calculated column you're adding to the ProceduresByJobRole table, based on the lack of aggregation in your DAX syntax. 😄
If so, try this out:Employee File Completion Date = VAR Filtered = FILTER ( 'Employee Files', FIND ( ProceduresByJobRole[Procedures.Course Code], 'Employee Files'[EmployeeFileName],, -1 ) <> -1 ) VAR Result = MINX ( Filtered, 'Employee Files'[Completion Date] ) RETURN Result
----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)