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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
stiand
Regular Visitor

Create monthly overview

Hi,

 

I'm a newbie at PowerBI, and need some startup help for my data shaping. I have a table similar to the shown below (just a bit larger). What I want is to shape the data in order to be able to calculate total revenue, profit, etc. on each unit, and also to see the numbers for each month.

data_1.PNGI have made some tests, but did not manage to get the data shaped correctly. I either got the data in the form where all numbers for unit A, B etc. where calculated in total, or with the transposed sheet where I got the revenue, profit etc. sum for all units 

 

Some basic guidance on how to shape the data would be very much appreciated. 

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi stiand ,

 

I create sample data to reproduce the scenario showing below picture ,setting the Item column has three instances as Revenue, Profit, Cost, and the Unit column has five instances from Unit A to Unit D ,when transfer your Excel format data to query format data in Query Edit.

1.jpg 

 

 

 

 

 

 

 

 

 

 

The Matrix visual displays the whole data like below picture.

2.png

 

 

 

 

 

 

 

 

 

 

 

 

 

Then, create measure named "Sum Item" to calculate total Revenue, Profit, Cost, assuming the table named Table1.

 

Sum Item = CALCULATE(SUM(Table1[Value]),ALLSELECTED(Table1[Item]))

 

Finally, choose Clustered column chart visual to display the total Revenue, Profit, Cost for each month. For example, when make some selections in slicers, return the result showing below picture.

 

3.jpg

 

 

 

 

 

 

 

Here is my test pbix file link: https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/EcuHdbGGNHFJq5y-11...

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi stiand ,

 

I create sample data to reproduce the scenario showing below picture ,setting the Item column has three instances as Revenue, Profit, Cost, and the Unit column has five instances from Unit A to Unit D ,when transfer your Excel format data to query format data in Query Edit.

1.jpg 

 

 

 

 

 

 

 

 

 

 

The Matrix visual displays the whole data like below picture.

2.png

 

 

 

 

 

 

 

 

 

 

 

 

 

Then, create measure named "Sum Item" to calculate total Revenue, Profit, Cost, assuming the table named Table1.

 

Sum Item = CALCULATE(SUM(Table1[Value]),ALLSELECTED(Table1[Item]))

 

Finally, choose Clustered column chart visual to display the total Revenue, Profit, Cost for each month. For example, when make some selections in slicers, return the result showing below picture.

 

3.jpg

 

 

 

 

 

 

 

Here is my test pbix file link: https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/EcuHdbGGNHFJq5y-11...

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for help!

The main problem I had was to pivot the columns properly. So for other newbies, the different pivotfunctions in queries are effective.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.