Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi all,
I have a "stupid" problem : I have to sum an average cost column.
Example :
I have actually
All values are averages but, for my need, the total row is wrong. I don't want 2 for 2020 and 3 for 2021 but 6 for 2020 and 9 for 2021.
That means :
It will be validated too without rows headers.
Thank you for your help
Solved! Go to Solution.
Iterate the average calculate at the desired granularity and add it all up.
SUMX (
VALUES ( Table1[ColABC] ),
CALCULATE ( AVERAGE ( Table1[Value] ) )
)
Or if you already have an averaging measure:
SUMX ( VALUES ( Table1[ColABC] ), [AvgMeasure] )
Iterate the average calculate at the desired granularity and add it all up.
SUMX (
VALUES ( Table1[ColABC] ),
CALCULATE ( AVERAGE ( Table1[Value] ) )
)
Or if you already have an averaging measure:
SUMX ( VALUES ( Table1[ColABC] ), [AvgMeasure] )
I tried that equation but my grand total is wrong.
average_soo = AVERAGE(CONTROL_TOWER_TIER1_TIER2_SUMMARY_FACT[STORE_OOS])
average_ssi = AVERAGE(CONTROL_TOWER_TIER1_TIER2_SUMMARY_FACT[STORE_IN_STOCK])
SumAvgSIS = SUMX(VALUES(MATERIAL_DIM[MATERIAL]),[average_ssi])
SumAvgSOO = SUMX(VALUES(MATERIAL_DIM[MATERIAL]),[average_soo])
Searched a lot for this answer, thanks for it!
Hi Alexis,
Thanks a lot. It works fine
😀
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
120 | |
74 | |
72 | |
58 | |
50 |
User | Count |
---|---|
167 | |
83 | |
68 | |
66 | |
55 |