Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

How to return a specific field for a record

Hi, I have connected PowerBI to Microsoft Project Online and have a question on how to return the relevant project and programme manager for a project. All projects, programmes and portfolios are co...
  • v-lili6-msft's avatar
    5 years ago

    hi  Anonymous 

    Create two column as below:

    PROGRAMME MGR = CALCULATE(MAX('Table'[Manager]),FILTER('Table','Table'[Portfolio]=EARLIER('Table'[Portfolio])&&'Table'[Programme]=EARLIER('Table'[Programme])&&'Table'[Type]="Programme"))
    PORTFOLIO MGR = CALCULATE(MAX('Table'[Manager]),FILTER('Table','Table'[Portfolio]=EARLIER('Table'[Portfolio])&&'Table'[Type]="Portfolio"))

    Result:

     

    and here is sample pbix file, please try it.

     

    Regards,

    Lin