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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Monitoring headcount

Hello, 

I am trying to present line graph with comparison of EBITDA per employee for 2 years, so I made a simple line graph with values for both years. But I need additional visual comparing headcount for those 2 years, and the values have to be in format for example January 500 / 505 (the first number is Headcount for first year, and second number is Headcount fo second year), something like in the picture. Is there any idea how could I do this in Power BI?

Picture fo PB.PNG

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous ,

 

This cannot be done using a single chart the option is to create  a matrix table and had that condittional formating, however the only question is if the line chart has all the values for the months or if can change in number of months.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi Miguel, thanks for your answer, 

it doesn't have to be a singl chart, I made simple line graph for values in both years, but I am not sure how to make that visual 476/471 for months. Can I use matrix for that? It wouldn't have values for all months, it would go month by month.

Hi @Anonymous ,

 

Yes you can use a matrix, if you place the months  / years in the columns and the measures on the values then you can adjust the colour of each metric to the values you need. something similar to this:

 

MFelix_0-1642600834315.png

 

For the colour I used a condittional formatting measure:

Colour = IF(SELECTEDVALUE('Table (2)'[YEar]) =CALCULATE( MAX('Table (2)'[YEar]),ALL('Table (2)'[YEar])), "#E66C37", "#D9B300")

 

 

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



MFelix
Super User
Super User

Hi @Anonymous ,

 

This cannot be done using a single chart the option is to create  a matrix table and had that condittional formating, however the only question is if the line chart has all the values for the months or if can change in number of months.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.