Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
116 | |
104 | |
87 | |
35 | |
35 |
User | Count |
---|---|
152 | |
98 | |
81 | |
61 | |
55 |