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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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