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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ChrisAZ
Helper V
Helper V

Adding a Total column in a matrix

Hello,

 

So I am trying to add total column at the end of my matrix that will provide a total by Vehicle that Sums Part cost, Labor cost, and Fuel cost. Fuel costs are not populated yet but will be soon. The issue I am having is that I can create a column if I want to do it directly under the Part, Labor, or Fuel data sources, but since this is for all 3 items, I would prefer to do it in a way that does not require it to live in just one of those datasets. Is that possible?

Screenshot 2025-03-12 085654.jpg

 

1 ACCEPTED SOLUTION

It is a pretty common scenario, not odd. Or you can have a dummy table and add measure in that table, and it is also a common practice. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

8 REPLIES 8
parry2k
Super User
Super User

@ChrisAZ measures are global to the model, they are not tied with any table. Not sure if that is what you are looking for. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

I think that is what I meant. The fields in this table come from different models, so having a measure sit in one of them seems odd for organization?

It is a pretty common scenario, not odd. Or you can have a dummy table and add measure in that table, and it is also a common practice. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@ChrisAZ, it is still a bit confusing. Do you want this empty column to be calculated dynamically?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Sorry, not sure how I could be more clear on it. I want it to calculate a total column to the right of the others to total up what is in the row all the way down for each vehicle, I just would rather not have the Measure/column have to be stored in one of the many data sets that comprise the other columns.

Sage_Chima
New Member

@ChrisAZ your request is not clear...
but u could try creating a measure that calculates the sum of "Part_cost", "Labour_cost" and "Fuel_cost" respectively. Then finally create another measure Total cost = Part_Cost + Labour_Cost + Fuel_Cost

I want a column in the space indicated that is totalling the columns to the left for each vehicle. I know I can create a measure in one of those existing data sets, but I am wondering if there is a way to do it without having to pick one of those data sources to apply it to?

parry2k
Super User
Super User

@ChrisAZ sorry it is not clear what you are trying to achieve. Could you please provide a little more detail? Thanks!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors