Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi @Anonymous ,
Please try this measure:
Measure =
AVERAGEX(
VALUES('Query1'[Index]),
DIVIDE(
CALCULATE(
SUM('Query1'[Number of Orders]),
'Query1'[Early Delivery Flag]="Y"
)+0,
CALCULATE(
SUM('Query1'[Number of Orders]),
ALL()
)
)
)
Where the value in 'Query1'[Index] is uniquely and not null. If the table 'Query1' does not have a column that meets such a condition, you can add a new column in the Power Query Editor.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Hi @Anonymous ,
Please try this measure:
Measure =
AVERAGEX(
VALUES('Query1'[Index]),
DIVIDE(
CALCULATE(
SUM('Query1'[Number of Orders]),
'Query1'[Early Delivery Flag]="Y"
)+0,
CALCULATE(
SUM('Query1'[Number of Orders]),
ALL()
)
)
)
Where the value in 'Query1'[Index] is uniquely and not null. If the table 'Query1' does not have a column that meets such a condition, you can add a new column in the Power Query Editor.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Hi @Anonymous
You can right it
( DIVIDE formula + SUM formula ) /2
@Anonymous , Divide will already give an Average. If you need Avg of Avg , you need a level/group by column
You need a measure like
example
Averagex(Values(Table[Column]) , Calculate(Divide(Sum(Table[Val1]), Count[Table[Val2]))))
refer if needed
DAX vs SQL Part 9: Average of Sum https://www.youtube.com/watch?v=4xn0A43jBz8&list=PLPaNVDMhUXGZNyKU0PgG2g3P0c6CPjMnj&index=9
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
30 | |
13 | |
11 | |
9 | |
6 |