March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi All,
i have tried to get avg sales per cust, but its not working, it somehow shows total sales.
here is my formula
Thanks
Solved! Go to Solution.
But total sales measure sums the values as in option 2, isn't it?
Then, it wouldn't be possible to achieve result in 1
Hi @san17680
Change the sum of the calculate by the average:
AVG SALES PER CUST = AVERAGEX(VALUES(Customer[Customer]),CALCULATE(AVERAGE(Sales_data[Sales Amount])))
Thanks for your response
when i calculate
Hi @san17680
You need first to calculate the average for each customer (AVG inside the calculate) and then if you want the average for the whole column, then you need to use AVERAGEX which will evaluate the expression row by row. If you sum, it will compute the SUM for each customer and later on, the AVERAGEX will compute the average over that sum.
Sorry in advance if I haven't explained it clearly
Thanks for clarifying. my question is
Sorry but I have lost myself. Are you using two different measures? Because the one I answered first was related to customers
i think I did not make myself clear.
this is not related to current question, but when i do avg sales per day here is formula for that
Well, I just tried to correct your formula, but I don't really now what you are trying to achieve or which is your expected output. Anyway, I think it should work if you use total sales too. It's difficult for me to realize your expectations without the data/expected result. What are you trying to achieve 1 or 2?
i m trying to achieve 1 but not using average in measuers, instead i want to use total sales measure, is this possible
Thanks
But total sales measure sums the values as in option 2, isn't it?
Then, it wouldn't be possible to achieve result in 1
ok thanks for your time.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |