Forum Discussion
Anonymous
5 years agoNot applicable
Create a report from two Lists-with multiple text column lookup field
Trying to generate a report, in power bi, to list Managers who have resigned, the company and other Managers from 2 lists: Companies List: CompanyID, Company Name, Managers Name(lookup from Manager...
- 5 years ago
Hi, Anonymous
I'd like to suggest you create a calculated table and a measure as below. There is no relationship between tables. The pbix file is attached in the end.
Calculated table:Table = CALCULATETABLE( DISTINCT('Manager List'[ManagerName]), FILTER( ALL('Manager List'), [Status]="Resigned" ) )Measure:
Visual Control = var c = COUNTROWS( FILTER( DISTINCT('Table'[ManagerName]), CONTAINSSTRINGEXACT(MAX('Company List'[Board Managers]),[ManagerName]) ) )+0 return IF( c>0, 1,0 )Then you need to put the measure in the visual level filter and use 'ManagerName' from 'Table' to filter the result.
Best Regards
Allan
If this post helps,then consider Accepting it as the solution to help other members find it faster.
Anonymous
5 years agoNot applicable
Thanks Allan,
it works fine now... thanks:)