To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
hi, good day! I'm newbie to powerbi. Can someone help me with DAX formula? I was trying to get the average per month wherein there are four scores per month. Similar to below table but for 12 months.
Would really appreciate your help! Thanks in advance!
Solved! Go to Solution.
Hi @JB17
You can try this,
average =
var _date= MIN('Table'[Date])
return AVERAGEX(FILTER(ALL('Table'),YEAR( 'Table'[Date])= YEAR(_date) && MONTH('Table'[Date])= MONTH(_date)),[Score])
result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @JB17
You can try this,
average =
var _date= MIN('Table'[Date])
return AVERAGEX(FILTER(ALL('Table'),YEAR( 'Table'[Date])= YEAR(_date) && MONTH('Table'[Date])= MONTH(_date)),[Score])
result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi,
You can create a relationship between your fact table and calendar table and then use DAX similar to this:
Proud to be a Super User!
User | Count |
---|---|
14 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
29 | |
17 | |
11 | |
7 | |
5 |