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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.