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.
I need to get an average by Model - regardless of any selection in the "EquipmentNum" field. How would I change this measure (which currently works) to give me this average. I know I would need to add the ALL function somewhere along with with the "EquipmentNum" but not sure where this would go or if my current measure would have to change significantly.
AVERAGEX(VALUES(f_GW[Model]),CALCULATE(AVERAGE(f_GW[UsageAmount])))
Z
Solved! Go to Solution.
@Anonymous,
You may try the DAX below.
Measure = AVERAGEX ( VALUES ( f_GW[Model] ), CALCULATE ( AVERAGE ( f_GW[UsageAmount] ), ALL ( f_GW[EquipmentNum] ) ) )
Measure 2 = CALCULATE ( AVERAGEX ( VALUES ( f_GW[Model] ), CALCULATE ( AVERAGE ( f_GW[UsageAmount] ) ) ), ALL ( f_GW[EquipmentNum] ) )
@Anonymous,
You may try the DAX below.
Measure = AVERAGEX ( VALUES ( f_GW[Model] ), CALCULATE ( AVERAGE ( f_GW[UsageAmount] ), ALL ( f_GW[EquipmentNum] ) ) )
Measure 2 = CALCULATE ( AVERAGEX ( VALUES ( f_GW[Model] ), CALCULATE ( AVERAGE ( f_GW[UsageAmount] ) ) ), ALL ( f_GW[EquipmentNum] ) )
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
72 | |
38 | |
31 | |
26 |
User | Count |
---|---|
95 | |
50 | |
43 | |
40 | |
35 |