- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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
Thanks
Pijush
Follow www.MyAccountingTricks.com
Youtube - https://www.youtube.com/channel/UCWWGZXYYq_TmV6UPiC3ujkQ
Proud to be a Super User! | |

Helpful resources
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.
Power BI Monthly Update - June 2025
Check out the June 2025 Power BI update to learn about new features.

User | Count |
---|---|
9 | |
7 | |
7 | |
6 | |
5 |
User | Count |
---|---|
12 | |
11 | |
9 | |
6 | |
6 |