Forum Discussion

AtchayaP's avatar
AtchayaP
Helper V
4 years ago
Solved

Powerbi

this is my table 1 and table 2.  Level 3 - denotes hierarchy  levels of organisation. Count of employees- under level 3 there are this many employees and their count. Skills- employees has t...
  • MahyarTF's avatar
    4 years ago

    Hi,

    As you have a common column in both tables, then in Power Query you could merge the table and create a separate table :

    1- Select Merge Queries from Home/Merge Queries/Merge queries as a new : (or you could merge in existing table) :

    2- Select the master table in the first list and child in second, and click on the 'Level 3' and 'Level 3 Group' in each table, then click 'Ok':

    3- now you have a new table combination of both tables, you could choose the column(s) from the list (by clicking on the icon in the last column in the new table) :

    4- delete 'Skills' column by right click on the column and selecting Remove

    5- After Applying it to Power BI, now you have a table :

     

     

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi AtchayaP ,

    I created another sample pbix file(see attachment), please check if that is what you want. You can create a measure as below to get it:

    Count of employees from Table 1 = CALCULATE(DISTINCTCOUNT('Table 1'[Employee name]))

    Best Regards