Forum Discussion

Ammar-Jaradat's avatar
Ammar-Jaradat
Frequent Visitor
4 years ago
Solved

Adding a column with values from different tables based on a condition

Hello There!   I have a problem and trying to figure out a solution for it. I have a set of data ( From different columns) that i want to show in one table, but conditional based on a single Value...
  • BA_Pete's avatar
    4 years ago

    Hi Ammar-Jaradat ,

     

    You need to create a STAR SCHEMA data model.

     

    1) Create an employee dimension table - a table that contains a unique list of all employees (names and/or ID numbers).

    2) Apply all your tables to the data model and make the following relationships:

    - dimEmployee[E'ee Name or ID] ONE : MANY closedItems[E'ee Name or ID]

    - dimEmployee[E'ee Name or ID] ONE : MANY completionPct[E'ee Name or ID]

    - dimEmployee[E'ee Name or ID] ONE : MANY satisfactionPct[E'ee Name or ID]

    3) Use dimEmploye[Name] in your visuals and bring in the fact metrics from each of your fact tables.

     

    Reference:

    https://docs.microsoft.com/en-us/power-bi/guidance/star-schema 

     

    Pete