Forum Discussion

bkr's avatar
bkr
Helper I
2 years ago
Solved

Visualize span of control

Hi all,   I have a table with employees, their ID, their line managers and their line managers' id for an organization of ~2,000 people.   Employee ID Employee Managers ID Manager 1 Joh...
  • 123abc's avatar
    2 years ago

    To visualize the span of control in Power BI, you can follow these steps:

    1. Data Preparation:

      Make sure you have your data loaded into Power BI. It should look similar to the table you provided, with columns for Employee ID, Employee Name, Manager ID, and Manager Name.

    2. Create a New Calculated Column:

      In Power BI, you can create a new calculated column to count the number of subordinates each manager has. You can use the DAX (Data Analysis Expressions) formula to achieve this. Here's the formula:

    Subordinate Count =
    CALCULATE(
    COUNTROWS('YourTableName'),
    FILTER('YourTableName', 'YourTableName'[Manager ID] = EARLIER('YourTableName'[Employee ID]))
    )

     

    1. Replace 'YourTableName' with the actual name of your table.

    2. Create a Bar Chart:

      Now, you can create a bar chart using the 'Subordinate Count' as the x-axis. Follow these steps:

      • Click on "Visualizations" on the left pane.
      • Select "Bar Chart."
      • Drag the "Subordinate Count" field to the "Values" section of the visual.
      • You can also drag the "Subordinate Count" field to the "Axis" section for more granularity.
    3. Customize the Bar Chart:

      You can further customize the bar chart as per your requirements. For example, you can add labels, titles, and adjust the formatting to make it visually appealing.

    4. Analyze the Data:

      After creating the bar chart, you will see the distribution of managers based on the number of subordinates they have.

    Here's how you can use Power BI to visualize the span of control in your organization. This will show you how many managers have one subordinate, two subordinates, and so on, which is what you wanted to achieve.

    Remember to adjust the table and column names in the DAX formula to match your actual data structure in Power BI.