I'm trying to create a bar chart where the x axis is weeks (1/1,1/8,1/15 - 12/31) and the y axis is # of counts.
# of counts is calculated by adding up all the employees that will be out of the office on a given week. For example, an employee has PTO starting from 1/1 - 1/14, then week 1/1 and 1/8 will increase count by 1.
Any ideas on how to tackle this problem? Thank you in advance.
Hi @kenneth0596 ,
I suppose you have checked out the chart controls?
If not, maybe have a look at those first.
If that does not suit your needs using a Vertical Gallery is the way to go. What you need to do is construct a table to feed into the items property of the gallery containing the weeks and number of employees out of the office that week. Getting this table in the right format might take some work depending on how your available data is structured.
Every item in your gallery represents a week.
Add a rectangle with a color filling to the gallery template and set the height of the rectangle to be calculated based on the employee count and you have your chart.
Giving more detailed information will help. Sample employee names, week numbers you want to count and the weeks . You can do that in Excel with names that are not actual and colum names. What you have shown is incomplete for the kind of chart you are requesting.
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.
Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.
Featuring samples like Return to the Workplace and Emergency Response Applications
Features releasing from October 2020 through March 2021