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
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

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.

Top Solution Authors