cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DeniseDL
Regular Visitor

Get total of classifications with different levels of that classification

Good morning,

 

I have a calculation I want to make, but I seem to missing how to do it.  I am very new to Power BI.  

 

I have a table with a column "Classification" that has several employee classification at various levels. i.e.: BI 01, BI 02...; EG 01, EG 02...

 

I would like to get a total number of employees in each classification.  I'm not sure how to get Power BI to calculate a total of, say 'BI's or 'EG's by summing up all the levels and giving me one total for the whole classification.  There are too many classifications and levels for to just filter each one.

 

DeniseDL_0-1684500070698.png

Any help would be greatly appreciated!

 

Thank you!

1 ACCEPTED SOLUTION
Alf94
Solution Supplier
Solution Supplier

Sure!

 

Open Power Query to transform a little bit your data. First you can duplicate your "Classification" column. Then use the following option:

 

Alf94_1-1684511108160.png

 

It will create two new columns:

 

Alf94_2-1684511172862.png

 

Use the "Close and Apply" button. Now your table looks like this:

 

Alf94_3-1684511290292.png

 

You can finally create the visual as expected:

 

Alf94_4-1684511333163.png

 

If I answered your question, please mark my post as a solution.

Best,

View solution in original post

5 REPLIES 5
Alf94
Solution Supplier
Solution Supplier

Hi @DeniseDL,

 

I worked with this sample:

 

Alf94_0-1684500729300.png

 

You can try this type of visual to solve your problem:

 

Alf94_1-1684500772628.png

 

If I answered your question, please mark my post as a solution.

 

Best

That is great, however, we have a ton of classifications and levels that the visual would never be big enough.  That is why I want to sum up all the level in the classification to show just the classification total.

 

i.e.: there are 1550 BI's out of 16000 employees

Alf94
Solution Supplier
Solution Supplier

@DeniseDL,

 

Is it what you are looking for?

 

Alf94_0-1684502059283.png

 

If yes, I used Power Query to extract text before delimeter (which is a space here) and obtain a new column with only AS/EG/CR. Then you can create the visual.

 

If I answered your question, please mark my post as a solution.

 

Best,

 

Yes!  That is what I'm looking for.  However, I'm not sure I understand how you got there.  Would you be able to expand on your explanation?

Alf94
Solution Supplier
Solution Supplier

Sure!

 

Open Power Query to transform a little bit your data. First you can duplicate your "Classification" column. Then use the following option:

 

Alf94_1-1684511108160.png

 

It will create two new columns:

 

Alf94_2-1684511172862.png

 

Use the "Close and Apply" button. Now your table looks like this:

 

Alf94_3-1684511290292.png

 

You can finally create the visual as expected:

 

Alf94_4-1684511333163.png

 

If I answered your question, please mark my post as a solution.

Best,

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors