Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply

Headcount of levels of employees by tenure

Hi,

 

I have an excel file which have the data-

Tenure- in Decimal values (eg 1.26,1.75...etc)

Levels- Associate, Senior, Manager, SM, Partner

 

I wanted a bar graph where, 

Y axis is the headcount numbers, X Axis is bucketed ( 0-1yrs, 1-2yrs, 2-5yrs, 5-10yrs, 10+yrs)

In bar graph, I want to show how many levels are there in each bucketed years (eg: 0-1yrs 5 Associates, 2 Seniors) like the individual count of each levels.

 

akashpadmakumar_0-1621766628239.png

 

Can anyone help ?

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@akashpadmakumar 

You can add column to your table to create the create the bracket and use on the X axis:

Bracker = 

SWITCH(
    TRUE(),
    Table3[Tenure] >=0 &&  Table3[Tenure] <= 1, "0-1",
    Table3[Tenure] > 1 &&  Table3[Tenure] <= 2, "1-2",
    Table3[Tenure] > 2 &&  Table3[Tenure] <= 5, "2-5",  
    Table3[Tenure] > 5 &&  Table3[Tenure] <= 10, "5-10",
    "> 10"
)



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

1 REPLY 1
Fowmy
Super User
Super User

@akashpadmakumar 

You can add column to your table to create the create the bracket and use on the X axis:

Bracker = 

SWITCH(
    TRUE(),
    Table3[Tenure] >=0 &&  Table3[Tenure] <= 1, "0-1",
    Table3[Tenure] > 1 &&  Table3[Tenure] <= 2, "1-2",
    Table3[Tenure] > 2 &&  Table3[Tenure] <= 5, "2-5",  
    Table3[Tenure] > 5 &&  Table3[Tenure] <= 10, "5-10",
    "> 10"
)



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.