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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
v-xinruzhu-msft
Community Support
Community Support

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
v-xinruzhu-msft
Community Support
Community Support

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


Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors