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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Niels_NL
Advocate I
Advocate I

Calculating order total

Hey guys,

 

situation is the following:

 

I have a sales-table containing the following columns

  • Ordernumber
  • Product
  • Price
  • Quantity
  • Linetotal

 

The linetotal represents 'Price * Quantity' for that individual product in the specific order.

It is possible for 1 ordernumber to contain multiple products and therefore also multiple linetotals.

 

How do I calculate the order total (so add up all linetotals per ordernumber) using a DAX measure?

 

Thanks!

~ Niels

1 ACCEPTED SOLUTION
tringuyenminh92
Memorable Member
Memorable Member

Hi @Niels_NL,

 

if you show these information by chart (column chart, line chart, ...) it will automatically sum and group by context(orderno/prodno) for you when you drag&drog ordernumber/productno to legend field.

And if you want to see order header and order details in same control, you should use Matrix(top left of picture) not table (top right of picture)

Screenshot 2016-12-11 23.42.23.png

 

 

 

 

 

View solution in original post

1 REPLY 1
tringuyenminh92
Memorable Member
Memorable Member

Hi @Niels_NL,

 

if you show these information by chart (column chart, line chart, ...) it will automatically sum and group by context(orderno/prodno) for you when you drag&drog ordernumber/productno to legend field.

And if you want to see order header and order details in same control, you should use Matrix(top left of picture) not table (top right of picture)

Screenshot 2016-12-11 23.42.23.png

 

 

 

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors