Forum Discussion
Anonymous
6 years agoNot applicable
DAX : weighted Average
Hi Folks,
I want to calculate the Weighted Average via DAX measure
I tried with below formula but output goes wrong :
LeadTime_WA = DIVIDE(SUMX('FCT_TOTAL_SPEND', 'FCT_TOTAL_SPEND'[LOC_CURR_AMT] * RELATED('DIM_PROD_MASTER'[LEAD_TIME_NBR])),
SUMX('FCT_TOTAL_SPEND', 'FCT_TOTAL_SPEND'[LOC_CURR_AMT]),0)
Please fix this.
Thanks.
SR
1 Reply
- Greg_Deckler
Community Champion
Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490