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.
Hi!
I need help with a stacked colum chart.
I am running a contest at work where you register all your activites to and from work. cycling, running, walking etc.
My data comes from a power BI dataset, constantly updated from a sharepoint list. The sharepoint list consists of thousands of elements. Each element has data on: Name, office branch, department, activity, distance
Visualizing this in power bi is a lot of fun, but there is one chart I cant get to work:
I want to show sum of distance, devided by employees in branch.
As it is now, I can only show sum of distance PER branch. Some branches has hundreds of emplyees, while others only have a few. The current chart is pretty useless, as its really just a chart of office-size.
Not all employes in every branch is participating, but I have the correct numbers of employees in each branch, its just not included in the dataset.
How can i devide the sum from each branch by the number of employees in each branch, and show that average in a chart?
Solved! Go to Solution.
Hi @Biccbacc ,
According to your description, my understanding is that you want to calculate the divide of total distance with the count of employee for each branch.
In this scenario, we can create a relationship between the employee table and activity table, then create a measure like below:
Measure = DIVIDE(SUM(activite[activite]),COUNT(employee[employee]))
The result will like below:
Best Regards,
Teige
Hi @Biccbacc ,
According to your description, my understanding is that you want to calculate the divide of total distance with the count of employee for each branch.
In this scenario, we can create a relationship between the employee table and activity table, then create a measure like below:
Measure = DIVIDE(SUM(activite[activite]),COUNT(employee[employee]))
The result will like below:
Best Regards,
Teige
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |