Forum Discussion
avarage
Paulo123 , Assuming you want some for month and average post that.
Have month year and year in this table of date tbale
AverageX(values('Date'[Month Year]), calculate(Sum(Table[Value])) )
Sum till month level avg post that. Use year in visual
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
- Paulo1234 years agoFrequent Visitor
hi,
thanks, I got the correct values for each year, but if I just want an average considering all the months of the selected years, how do I do that?
- v-janeyg-msft4 years ago
Community Support
Hi, Paulo123
In theory, the value of measure will change with the context. Can you show how you lay it out in the visual? What's the formula you used in the end?
Janey
- Paulo1234 years agoFrequent Visitor
Hi, first i make a sum:
-SOMA SAIDA = CALCULATE(SUM(EX[VALOR]),E_S[Column1]="S")
second i calculate the average:
- Med = AVERAGEX(VALUES(CALENDARIO[Date].[Mês]),[SOMA SAIDA]).
.
here we can see that the sum is working correctly:
changing the layout, i get the annual average correctly:
but i want to get an average considering all months of all selected years, as the result of this excel: