The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
dear all,
I have the following table:
Order | Orderline | Q |
A | 1 | 1000 |
A | 2 | 500 |
A | 3 | 10000 |
B | 1 | 5000 |
B | 2 | 2500 |
C | 1 | 400 |
C | 2 | 200 |
C | 3 | 600 |
C | 4 | 600 |
average = | 2311,1 |
The average of the lines is 2311, but i want an order average, which would look like this, with the following outcome:
Order | Orderline | Q | Order Q |
A | 1 | 1000 | 16500 |
A | 2 | 500 | |
A | 3 | 10000 | |
B | 1 | 5000 | 7500 |
B | 2 | 2500 | |
C | 1 | 400 | 1800 |
C | 2 | 200 | |
C | 3 | 600 | |
C | 4 | 600 | |
average = | 2311,1 | 8600 |
So where all the Q's are summed together, and then taken the average, so you know the average Q per order.
Solved! Go to Solution.
@Anonymous ,
Try like
AverageX(Summarize(Table,Table[Order], "_1",sum(Table[Q])),[_1])
@Anonymous ,
Try like
AverageX(Summarize(Table,Table[Order], "_1",sum(Table[Q])),[_1])
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
77 | |
72 | |
47 | |
39 |
User | Count |
---|---|
138 | |
108 | |
69 | |
64 | |
57 |