Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Data modelling question

Hi, I have one specific requirement in Power BI that I am unable to figure out. I have an 'Employees' table in my data model which consists of the following columns and sample data,       ...
  • TomMartens's avatar
    6 years ago

    Hey Anonymous ,

     

    my table looks like this:

    I use this DAX statement to create a calculated column:

    reportsto name = 
    var reportsto_id  = 'Table'[reportsto]
    return
    CALCULATE(
        FIRSTNONBLANK('Table'[name] , 0) 
        , FILTER(
            ALL('Table')
            , 'Table'[id] = reportsto_id
        )
    )

    Now the table looks like this:

    Hopefully this is what you are looking for.

     

    Regards,

    Tom