Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Dataverse tables not uploading into PowerBI (Dynamics HR)

Posted on by 281

Hi, 

I am wanting to put an employee's reporting information (the manager they report into) on a powerbi dashboard. 

I found the table on dataverse that shows the reporting line - which is called position hierarchy - the tables name is called 'mshr_hcmpositionhierarchyentity'.

When I try to upload data from HR dataverse into powerbi I can't find that table? Does anyone know why this table isn't showing? it is only showing tables starting with cdm populating. 

pastedimage1653373879504v1.png

Cheers,

Henry

  • Henry G Smith Profile Picture
    Henry G Smith 281 on at
    RE: Dataverse tables not uploading into PowerBI (Dynamics HR)

    Hi Parag,

    Sorry, ignore my previous comment. We figured it out....simple errors on our end!

    Thank you

  • Henry G Smith Profile Picture
    Henry G Smith 281 on at
    RE: Dataverse tables not uploading into PowerBI (Dynamics HR)

    Hi Parag, 

    Apologies for bring this up again. The team and I are struggling with understanding what part of the code to remove so that the code doesn't just filter one employee but shows all employees?

    pastedimage1654643255435v1.png

    Appreciate all the help. 

    Thanks,

    HS

  • Henry G Smith Profile Picture
    Henry G Smith 281 on at
    RE: Dataverse tables not uploading into PowerBI (Dynamics HR)

    Hi Parag,

    Sorry for the late reply. Yes this worked!

    Sorry I'm not that great at deciphering large code. I feel like this may be a silly question, but what part of that codes will I need to remove to get everyone and not just one worker filtered?

    Regards,

    HS

  • Suggested answer
    Parag Chapre Profile Picture
    Parag Chapre 12,271 Most Valuable Professional on at
    RE: Dataverse tables not uploading into PowerBI (Dynamics HR)

    Hi Henry,

    Create a blank query in Power BI, go to Advance editor, select All and paste the above code. You will get manager value.

    Note : Remove the filter on Worker number.

    Please try and let me know if any issue.

  • Henry G Smith Profile Picture
    Henry G Smith 281 on at
    RE: Dataverse tables not uploading into PowerBI (Dynamics HR)

    Hi Parag, 

    Thank you for providing this. I have gone and merged Worker with Position worker assignment, I then got Worker and Position assignment and joined it with Job position. This gave me Position and Parent position. 

    Currently in my merged table I have the employees name, current job title/jobid, the parent positionid, but I still can't get the managers name?

    In a another section you suggest to use this code:

    pastedimage1653456250768v1.png

    Sorry if I am missing something. Are you using this code to fetch the manager name? Where would I paste this code? I've tried to paste it in a custom column, a new measure, creating a new column and they have all given me back errors saying that the syntax for 'Table' is incorrect. 

  • Suggested answer
    Parag Chapre Profile Picture
    Parag Chapre 12,271 Most Valuable Professional on at
    RE: Dataverse tables not uploading into PowerBI (Dynamics HR)

    Hi Henry,

    You have to use below tables to get the manger.

    a. Cdm_worker

    b. Cdm_jobposition

    c. cdm_positionworkerassignmentmaps

    Please check the below link and you can see the DAX query there to get Manager.

    community.dynamics.com/.../manager-field-in-worker-entity-returns-null-in-flow

  • Henry G Smith Profile Picture
    Henry G Smith 281 on at
    RE: Dataverse tables not uploading into PowerBI (Dynamics HR)

    Hi parag, 

    what table would I need to use/upload into powerBI to find the employees manager? I’ve looked through so many tables and can’t seem to find it! thanks 

  • Suggested answer
    Parag Chapre Profile Picture
    Parag Chapre 12,271 Most Valuable Professional on at
    RE: Dataverse tables not uploading into PowerBI (Dynamics HR)

    Hi Henry,

    mshr_ is belongs to virtual entity and Dataverse connector in Power BI does not support virtual entity.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans