Forum Discussion
MichelBrown
4 years agoRegular Visitor
DAX formula weighted average support requested
Hello community, Can someone help me with a DAX formula to calculate average sales per store per period and per region as in the below example? Even after reading many questions on the same topi...
- 4 years ago
Assuming you're using dim_Regions[Region] in your visual, you should be able to define the ratio as:
Sales per store = DIVIDE ( SUM ( fact_Sales[Sale] ); SUM ( dim_Regions[Number of stores] ); 0 )
MichelBrown
4 years agoRegular Visitor
Hello AlexisOlson,
Thanks for your reply, this is indeed the (a?) solution that solves the problem from my question. It shows me again that I'm not used to thinking in a DAX way, in Excel I would have solved the issue probably much faster.
AlexisOlson
Super User
4 years agoDAX definitely takes some getting used to. I like it much better than Excel formulas now though (which tend to be difficult to read).