Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello ,
I am trying to find previous 3 months of average.
I have tried below measure but I want january, february and march data aswell without selecting month and year
Measure-
Hello @Kalyani2009 ,
Asuming you have a Dimension Calendar Table you could use this:
Prev 3 Month Average =
CALCULATE (
AVERAGE ( Tsales[sales] ),
DATESINPERIOD (
'Calendar'[Date],
EOMONTH ( MIN ( 'Calendar'[Date] ), -1 ), //the last day of last month.
-3,
MONTH
)
)
calculate(averagex(values(dimdate[yearmonth]),calculate(sum(tsales[sales]))),datesinperiod(eomonth(today(),-1),-3,MONTH))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
24 | |
20 | |
15 | |
13 |
User | Count |
---|---|
51 | |
46 | |
39 | |
19 | |
19 |