Forum Discussion

farriyajawed's avatar
farriyajawed
Frequent Visitor
2 years ago

Category

I have a dataset which has employees categorized by level but does not have a hierachy. I am trying to create a visual where all employees are categorized and then sorted by level but I am unable to do so. Can someone help please.

4 Replies

  • Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

    Do not include sensitive information or anything not related to the issue or question.

    If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216

    Please show the expected outcome based on the sample data you provided.

    Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

  • if the level categorisation is a numerical column you can sort the displayed column in your visual by this numerical hierarchy.

    Dummy data using fruit with order preference:

     

    Sort the Fruit column by Preference by left clicking the Fruit column, and then clicking "sort by column" and selecting what you want.

     

    This will sort your desired column by the number field (e.g. categorisation) creating a hierarchy based on the number:

    if the categorisation column is not numerical - you may need to create a helper table by clicking Enter Data and creating a supporting table that can be conncted via a relationship, and then you can sort by doing this method.

  • farriyajawed's avatar
    farriyajawed
    Frequent Visitor

    Hello, 

     

    I think my question was incorrect. I need to create a diagram where each level is sorted from lowest to highest and each name and skill level is displayed completely.  it can be a pyramid where CEO is at the top, all partners below and so on. 

     

    Here is my sample data: 

    RecordIDEmployee Name (Last Suffix, First MI)DepartmentSkill LevelOfficeLevel
    1Name 1AuditCeoDowntown0
    2Name 2AuditPartnerDowntown1
    3Name 3AuditPartnerDowntown1
    4Name 4AuditSenior ManagerDowntown2
    5Name 5AuditManagerDowntown3
    6Name 6AuditManagerDowntown3
    7Name 7AuditManagerDowntown3
    8Name 8AuditSeniorDowntown4
    9Name 9AuditSeniorDowntown4
    10Name 10AuditSeniorDowntown4
    11Name 11AuditSeniorDowntown4
    12Name 12AuditStaffDowntown5
    13Name 13AuditStaffDowntown5
    14Name 14AuditStaffDowntown5
    15Name 15AuditStaffDowntown5
    16Name 16AuditStaffDowntown5
    17Name 17AuditStaffDowntown5