Forum Discussion
How would the Dax logic need be written to replicate the same result as the built-in average line
- 2 years ago
PBIViz_2024 , If you have Avg measure , you can have measure like below and use that using FX option in constant line
Avg = calculate([Measure], removefilters(DateTable))
Avg = calculate([Measure], allselected())
or Avg of Month or day on a Sum measure
Avg Month = calculate(Averagex(Vales(Date[Month Year]), [Measure]) , allselected())
Avg Day= calculate(Averagex(Vales(Date[Date]), [Measure]) , allselected())
PBIViz_2024 , If you have Avg measure , you can have measure like below and use that using FX option in constant line
Avg = calculate([Measure], removefilters(DateTable))
Avg = calculate([Measure], allselected())
or Avg of Month or day on a Sum measure
Avg Month = calculate(Averagex(Vales(Date[Month Year]), [Measure]) , allselected())
Avg Day= calculate(Averagex(Vales(Date[Date]), [Measure]) , allselected())
Thanks a lot.It worked.