Average invoice amount

BORUCH

Well-known Member
Joined
Mar 1, 2016
Messages
548
Office Version
  1. 365
Platform
  1. Windows
i have a table that has the following info how can i get a formula that will tell me the average invoice amount for a particular customer I would like a dax formula not an excel

CUSTOMER NUMBERCUSTOMER NAMEINVOICE NUMBERINVOICE AMOUNT
A001JACK123$1,000
A001JACK456$6,521
B001BOB789$500
B001BOB1011127698
 
Last edited:

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Power Query:
=CALCULATE(AVERAGE(Table1[INVOICE AMOUNT]),ALLEXCEPT(Table1,Table1[CUSTOMER NAME]))
 
Upvote 0
Or use the customer number, it is safer

Power Query:
=CALCULATE(AVERAGE(Table1[INVOICE AMOUNT]),ALLEXCEPT(Table1,Table1[CUSTOMER NUMBER]))
 
Upvote 0
basically what i want is a average of invoice # 123 and 456 for customer number A001
 
Upvote 0
what i need it to do is to first total up each individual invoice then make an average since each invoice can have multiple line items
 
Upvote 0

Forum statistics

Threads
1,223,680
Messages
6,173,810
Members
452,535
Latest member
berdex

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top