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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
bbates
New Member

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
Anonymous
Not applicable

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
Anonymous
Not applicable

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

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!





Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors