Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi everybody, Im trying to do a dax measure that has to calculate the total average of the values of the column cells, this measure has to work with any attributes and/or level in the pivot table (excel). The thing is I have correct values only at store level, but no for the other attributes in my model.
To better describe my problem, I attached a sample power BI file.
thanks a lot for your help!
@ctrip77 , hello
try this measure:
average Sales_per_store_v1 =
AVERAGEX(
dim_machines,
DIVIDE(
[Total Sales],
[Number_of_Stores]
)
)
Is it of any help?
Thans for your reply @Sergiy !
Your metric works perfect, but only when in the table you put the Machine_Name attribute.
If I change Machine_name to Cat_1 then my average is wrong again.
That's just the problem that I can not solve!, I just want a metric that works for any attribute in the model, it should always show the average of the values displayed in the column (in the grand total row)
have any workaround for this?
thanks!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
14 | |
11 | |
10 | |
9 |