Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

project hours tracking

Hello, everybody, Currently I have the following problem in Power Bi. I've been trying to show the following for days: I would like to have the different hours in a project displayed to me. The va...
  • v-lili6-msft's avatar
    6 years ago

    hi Anonymous 

    For your case, you need to adjust your data structure for the data table.

    You could try this way as below:

    Step1:

    Duplicate the basic data table.

    Step2:

    For the basic table, remove H per Wx columns, then selected all H per Wx columns, Unpivot the columns

    And Extracted Last two Characters for Attribute column

    Step3:

    Use the same logic for duplicate table in H per Wx columns

     

    Step4:

    Merge basic table and duplicate table as  below:

    Step5:

    Expand the table

     

    Result:

    Here is sample pbix file, please try it.

     

    Regards,

    Lin