Forum Discussion

Js112233's avatar
Js112233
Icon for Helper I rankHelper I
9 years ago
Solved

Tying values to a unique identifier

Hello! 

 

I have attached a picture showing the scenario I face. I export a .csv sheet that has 4 columns. One has a generic name that is repeated every time a new identifier appears in column 2. Two has a unique ID, the third column has the employee id, and the fourth has the hours worked.

The issue is that the unique identifier only shows in one row therefore only times to the first entry in column three and 4. All other employees and their subsequent hours do not have a unique identifier and can not be joined properly to the other table I desire to join to.

Is there a way to solve this when I edit my query? It will be a monthly report so I am hoping there is a way!

Thank you for any feed back !

 

DescriptionIDEmployeeHours
Repair_details15625.0sEmployee 10.5
  Employee 21
  Employee 31
Repair_details15768.0tEmployee 50.5
  Employee 30.5
  Employee 20.5
Repair_details157869.0hEmployee 51.5
  Employee 21
  Employee 11.5
  • Js112233  Try this Fill Down feature in the Query Editor

     

    Right-Click each Column that has values missing => Fill => Down

     

     

    And the result...

     

     

    Hope this helps!

     

    Haha Anonymous  :smileyhappy:

    From the link in your post today! :smileyhappy: Thanks!

     

    EDIT: Refresh works too!

     

  • Sean's avatar
    Sean
    9 years ago

    Js112233

     

    I first created a sample Excel file with the data you had posted.

     

    Then I just added 5 additional rows to the sample data as in the picture - saved and closed Excel as is in the Picture below

     

     

    Then in PBI hit Refresh and this is the updated result!

     

     

    Good Luck! :smileyhappy:

5 Replies

  • Sean's avatar
    Sean
    Icon for Community Champion rankCommunity Champion

    Js112233  Try this Fill Down feature in the Query Editor

     

    Right-Click each Column that has values missing => Fill => Down

     

     

    And the result...

     

     

    Hope this helps!

     

    Haha Anonymous  :smileyhappy:

    From the link in your post today! :smileyhappy: Thanks!

     

    EDIT: Refresh works too!

     

    • Js112233's avatar
      Js112233
      Icon for Helper I rankHelper I

      Hey! Thank you! This is so incredibly easy I feel sheepish. Thought about it too hard I guess. Thank you!

    • Js112233's avatar
      Js112233
      Icon for Helper I rankHelper I

      When you say refresh works too, does that mean in a month from now when I replace the CSV the old ones will fill in correctly and the newly added data (that will have new IDs) will just need to be filled in?

      • Sean's avatar
        Sean
        Icon for Community Champion rankCommunity Champion

        Js112233

         

        I first created a sample Excel file with the data you had posted.

         

        Then I just added 5 additional rows to the sample data as in the picture - saved and closed Excel as is in the Picture below

         

         

        Then in PBI hit Refresh and this is the updated result!

         

         

        Good Luck! :smileyhappy: