The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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] ) )