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.
Greetings all,
Is there a way to calculate a fixed average price by month? I’m required to factor in a set measure cost for avg unit prices per month.
Right now I can obtain a fixed price for all orders but am unsure on how to do this by month.
Formula for the average sale price per unit:
Avg Sale Price Per Unit = CALCULATE(DIVIDE(SUM(‘Warranty_Costs’[Net_Sales]),[Total Warranty Cores],1),ALLSELECTED(Warranty_Costs))
Any help would be greatly appreciated, thanks!
Nic
Solved! Go to Solution.
Hi @nnouchi ,
To use VALUES function could get the excepted result here.
Avg Sale Price Per Unit m = CALCULATE ( DIVIDE ( SUM ( 'Warranty_Costs'[Net_Sales] ), [Total Warranty Cores], 1 ), ALLSELECTED ( Warranty_Costs ), VALUES ( 'Warranty_Costs'[Date].[Year] ), VALUES ( 'Warranty_Costs'[Date].[Month] ) )
Hi @nnouchi ,
Could you please share your sample data and excepted result to me if you don't have any Confidential Information.Please upload your files to One Drive and share the link here.
Hi @nnouchi ,
To use VALUES function could get the excepted result here.
Avg Sale Price Per Unit m = CALCULATE ( DIVIDE ( SUM ( 'Warranty_Costs'[Net_Sales] ), [Total Warranty Cores], 1 ), ALLSELECTED ( Warranty_Costs ), VALUES ( 'Warranty_Costs'[Date].[Year] ), VALUES ( 'Warranty_Costs'[Date].[Month] ) )
Thank you for the help, I was able to get my expected result through this function:
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.