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
kala2
Helper III
Helper III

How to create Clustered Column Chart grouped by month and person

I'm trying to create a clustered column chart that would show a sum of values, by month for each person with each cluster representing the same month. The data that are in the following format:

Screenshot 2021-07-28 124912.png

I need to create something like this:

kala2_0-1627466154744.png

 

Each bar is a person with a sum for the specific month. The person is appearing multiple times in the table for each month so we need a sum for each month.

I've managed in power bi to create a chart grouped by person and month, but i need the opposite as explained above:

Screenshot 2021-07-28 130217.png

Any ideas how to implement the chart?

1 ACCEPTED SOLUTION
mahoneypat
Employee
Employee

You should unpivot your columns for each month in the query editor.  Then you can use the Month column on your x axis and the Person column as the legend to get your result.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
mahoneypat
Employee
Employee

You should unpivot your columns for each month in the query editor.  Then you can use the Month column on your x axis and the Person column as the legend to get your result.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


I have unpivoted all dates columns and separated dates and values as shown below:

kala2_0-1627475862228.png

But sum is not applied for each person in Values axis

kala2_1-1627476003228.png

kala2_2-1627476027110.png

 

 



 

amitchandak
Super User
Super User

@kala2 , Month as axis and Person as legend.

 

Month and person as axis. Sort on Month, person and use concatenate label off , if needed again sort on Month, person

 

For the second option, you can watch the power bi part here

https://www.youtube.com/watch?v=2P5BBRN853c

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.