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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
senthilg_2008
New Member

How to summarize / group more than 4 columns with a sum of a column

Hi Team,

 


I have a scenario to identify the Gap between a sum of ordered items vs storage capacity of a table in the below mentioned format.
I must show the sum of Ordered items for each Quarter split by Product and Region
I have used the Measure to calculate and summarize the data and displayed using the matrix Formula below, however I am unable to get the required overview Column of Capacity / Ordered and Gap (3rd Column in the screenshot highlighted in Yellow).

Any help is greatly appreciated. Thanks in Advance. Please let me know in case you need any other information.

 

senthilg_2008_1-1708010226619.png

 

Source Input table format:

RegionProductPeriodCapacityOrdered
IndiaAppleQ14520
IndiaAppleQ14520
IndiaAppleQ24535
IndiaBananaQ16070
IndiaBananaQ26050
IndiaBananaQ26025
USAAppleQ14540
USAAppleQ14555
USAAppleQ24545
USABananaQ16040
USABananaQ26050
USABananaQ26075

 

Measure Query that I have used: 

Msr_TotalOrdered = CALCULATE(sum(InputTable[Ordered]),GROUPBY(InputTable,InputTable[Product],InputTable[Region],InputTable[Period]))

 

By using the above meausre and using a Matrix table I am getting the output as follows:

senthilg_2008_2-1708010843263.pngsenthilg_2008_3-1708010934092.png

 

1 ACCEPTED SOLUTION
Daniel29195
Super User
Super User

@senthilg_2008 

output 

Daniel29195_0-1708025537508.png

 

create a caluclated column  in your table : 

Daniel29195_1-1708025566600.png

 

 

then use a matrix visual : 

Daniel29195_2-1708025596159.png

 

 

 

finally : 

go to visualztion pane , and switch :  switch values to rows to ON . 

Daniel29195_3-1708025630284.png

 

 

let me know if this helps .

 

 

NB: you can remove totals, subtotals if you donyt need them . just disable these 2  ,.

Daniel29195_4-1708025678432.png

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

 

 

View solution in original post

3 REPLIES 3
senthilg_2008
New Member

Thank you so much @Daniel29195 , your really a champion !! It resolved my question.

@senthilg_2008 

Amazing !  im glad i could help you out .  

 

Daniel29195
Super User
Super User

@senthilg_2008 

output 

Daniel29195_0-1708025537508.png

 

create a caluclated column  in your table : 

Daniel29195_1-1708025566600.png

 

 

then use a matrix visual : 

Daniel29195_2-1708025596159.png

 

 

 

finally : 

go to visualztion pane , and switch :  switch values to rows to ON . 

Daniel29195_3-1708025630284.png

 

 

let me know if this helps .

 

 

NB: you can remove totals, subtotals if you donyt need them . just disable these 2  ,.

Daniel29195_4-1708025678432.png

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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