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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Headcount Changes in Waterfall Chart

I'm trying to create a Waterfall visual that shows

  • Hires and re-hires as "Increases"
  • Terminations and retirements as "Decreases"

 

My source data is an Excel spreadsheet showing the names of employees who have been HIRED, RE-HIRED, TERMINATED, OR RETIRED over that past 12 months.

 

Is there a simple way to tell Power BI to treat the HIRES AND RE-HIRES as Increases, and the TERMINATIONS AND RETIREMENTS as Decreases?

 

I've searched in the Power BI Community for solutions on this topic.  Thanks in advance for any assistance you can lend.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thank you for responding.

 

I found another way that works as well:

 

  • Edit Queries
  • Add Column Tab
  • Add Conditional Column
  • Name the new column Headcount Change
  • Tell the formula to treat Hires and Rehires as 1
  • Tell the formula to treat Terminations and Retirements as -1
  • Close and apply
  • In the Report page, click on the Waterfall chart to Sort by Headcount Change

 

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

You could add a measure to sum the amounts with the correct sign.

 

Headcount Change = SUMX( 'Headcount Changes' , IF ( 'Headcount Changes'[Type] IN {"Hire", "Re-Hire"},1,-1))
Anonymous
Not applicable

Thank you for responding.

 

I found another way that works as well:

 

  • Edit Queries
  • Add Column Tab
  • Add Conditional Column
  • Name the new column Headcount Change
  • Tell the formula to treat Hires and Rehires as 1
  • Tell the formula to treat Terminations and Retirements as -1
  • Close and apply
  • In the Report page, click on the Waterfall chart to Sort by Headcount Change

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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