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
jagtaps
Frequent Visitor

Table in Query editor

Hello,

 

I have a table containing the Cost Types which are repeating for 12 rows (representing 12 months data), i have per month cost update in uploaded data.

 

Can you add column in table and cumulate the costs based on cost types??

 

Regards,

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @jagtaps 

 

Your expected output is not clear to me. If your data is similar to below and you want to get the total cost per cost type, you can group by Type column and calculate the sum of Cost column. 

vjingzhang_0-1646723069742.png

vjingzhang_2-1646723328232.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @jagtaps 

 

Your expected output is not clear to me. If your data is similar to below and you want to get the total cost per cost type, you can group by Type column and calculate the sum of Cost column. 

vjingzhang_0-1646723069742.png

vjingzhang_2-1646723328232.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

PhilipTreacy
Super User
Super User

Hi @jagtaps 

Sounds like you want to Group the Cost Types and sum the costs in the months column.

Please supply some sample data as a text file/table (copy and paste here) or supply your file.

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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.