Average # Returns Per Customer Per Employee

jb00976

New Member
Joined
Oct 23, 2017
Messages
32
I am very new to PowerBI so this may be a simple questions but, I don't know how to do it yet!

If I had a list of employees and their customer return rate like this:

EmployeeCustomer# Return
JoeABC Co.3
SamDEF Co.3
JoeGHI Co.0
SamJKL Co.1
JoeMNO Co.1
SamPQR Co.0
JoeSTU Co.0

I am looking to be able to to show on a chart the employees average # of returns per customer (i.e. for Joe it would be 4 total returns divide 3 total customers which equals 1.3 returns per customer on average) how would I get a field to be able to show that in a chart.

Thank you in advance for any help.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try something along the lines of
VBA Code:
Returns per Customer :=
VAR customer_returns =
    SUM ( MyTable['# Return'] )
VAR customer_count =
    DISTINCTCOUNT ( MyTable[Customer] )
VAR avg_returns_per_customer =
    DIVIDE ( customer_returns, customer_count )
RETURN
    avg_returns_per_customer
This is pretty simple, and you see the measure doesn't mention employees, so it assumes you would be listing the employees in rows of the pivot table to get their values, then you could create a pivot chart showing employees along the x-axis and their returns on the y-axis. You would need to make sure you set filters or slicers for any other conditions you wanted (e.g. date ranges etc.)

I remember being a newcomer to Power Pivot. Write the measures as broadly as possible and let the pivot tables do the work.
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,659
Members
449,114
Latest member
aides

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