Reply
bbates
New Member
Partially syndicated - Outbound

Total Some rows of job costs base on another column with order number

I have a column that has sub job total costs that may be 10 or twelve rows. I want to total all the job costs based on the order number which is another field in the same table. I tried a few Bing AI suggestions that threw errors. Any advice would be appreciated.

1 ACCEPTED SOLUTION
avatar user
Anonymous
Not applicable

Syndicated - Outbound

Hi @bbates 

You can refer to the following code as a sample, you can create a calculated column.

Total_sum =
SUMX (
    FILTER ( 'Table', [ordernumber] = EARLIER ( 'Table'[ordernumber] ) ),
    [costs]
)

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
avatar user
Anonymous
Not applicable

Syndicated - Outbound

Hi @bbates 

You can refer to the following code as a sample, you can create a calculated column.

Total_sum =
SUMX (
    FILTER ( 'Table', [ordernumber] = EARLIER ( 'Table'[ordernumber] ) ),
    [costs]
)

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PijushRoy
Super User
Super User

Syndicated - Outbound

Hi @bbates 

Can you please share sample data or screenshots?

 


If solved your requirement, please mark this answer as SOLUTION.
If this comment helps you, appreciate your KUDOS 

PijushRoy_0-1701519018206.png

 



Thanks
Pijush

Follow www.MyAccountingTricks.com 
Youtube - https://www.youtube.com/channel/UCWWGZXYYq_TmV6UPiC3ujkQ





Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





avatar user

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)