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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
adityah
Frequent Visitor

How to summarize a table correctly

Hi,

 

Please excuse if the question seems trivial, I am a newbie and have tried various solutions which havent worked. I am trying to summarize a table 'Budget' which looks like this:

 

RegionPower BIUSDTypeCat.
xxNon-Motor12500ActualCAPEX
xxNon-Motor510.51ActualOPEX
xxNon-Motor2473.671ActualOPEX
xxNon-Motor757.4359ActualOPEX
yyNon-Motor680.5167ActualOPEX
yyNon-Motor1118.632ActualCAPEX
yyMotor6992ActualCAPEX
yyMotor4736.987ActualCAPEX
yyMotor757.4359ActualOPEX
yyMotor1740ActualCAPEX
yyMotor2967.308ActualCAPEX
xxMotor2294.103ActualCAPEX
xxMotor3191.795ActualCAPEX

 

to look like this:

 

RegionPower BIActualCat.
xxNon-Motor12500CAPEX
xxNon-Motor3741.616OPEX
yyNon-Motor680.5167OPEX
yyNon-Motor1118.632CAPEX
yyMotor16436.29CAPEX
yyMotor757.4359OPEX
xxMotor2294.103CAPEX

 

I don't actually need the column 'Type' and instead replace the USD column name with 'Actual'

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@adityah , a sum(Table[USD]) should work in table visual with all other columns

 

 

If you need a data table,

 

Summarize(Table, Table[Region], Table[Power BI], Table[Cat], "Actual", SUm(table[USD]))

 

Learn Power BI: Calculatetable, Summarize, Groupby, SummarizeColumns, Except, Distinct, Generateseries, Generate, Crossjoin
https://youtu.be/cN8AO3_vmlY?t=22350

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

FreemanZ
Super User
Super User

hi @adityah 

try to add a calculated table like:

Table = 
ADDCOLUMNS(
    SUMMARIZE(
        budget,
        budget[Region],
        budget[Power BI],
        budget[Cat.]
    ),
    "Actual",
    CALCULATE(SUM(budget[USD]))
)

it worked like:

FreemanZ_0-1683699784946.png

View solution in original post

2 REPLIES 2
FreemanZ
Super User
Super User

hi @adityah 

try to add a calculated table like:

Table = 
ADDCOLUMNS(
    SUMMARIZE(
        budget,
        budget[Region],
        budget[Power BI],
        budget[Cat.]
    ),
    "Actual",
    CALCULATE(SUM(budget[USD]))
)

it worked like:

FreemanZ_0-1683699784946.png

amitchandak
Super User
Super User

@adityah , a sum(Table[USD]) should work in table visual with all other columns

 

 

If you need a data table,

 

Summarize(Table, Table[Region], Table[Power BI], Table[Cat], "Actual", SUm(table[USD]))

 

Learn Power BI: Calculatetable, Summarize, Groupby, SummarizeColumns, Except, Distinct, Generateseries, Generate, Crossjoin
https://youtu.be/cN8AO3_vmlY?t=22350

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.