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
Anonymous
Not applicable

Sum dynamically a column

Hello Folks,

 

I have the following data structure (already unpivoted)

fmourtaza_0-1593350399935.png

In PowerBI Desktop, I am getting the cont of value however my requirement is to get the sum of "Shares Book Value" which should "423455" in this case.

Tried to create a new Quick Measure (Running Total, Total for category, Addition) but could not succeed.

fmourtaza_1-1593350534279.png

Thanks.

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

In Power Query change the data type of the value column to number.

jdbuchanan71_0-1593351305067.png

Then in PowerBI you write a measure to sum that column

Total Value = SUM ( YourTable[Value] )

Then add that measure to your visual.

 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Make sure the value column is of Number type Whole number/Decimal. Else change it. Then you can Sum it up.

 

Measure = Sum(Table[Value])

 

Data Format New Rib.png

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
jdbuchanan71
Super User
Super User

In Power Query change the data type of the value column to number.

jdbuchanan71_0-1593351305067.png

Then in PowerBI you write a measure to sum that column

Total Value = SUM ( YourTable[Value] )

Then add that measure to your visual.

 

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.