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.
Hi All ,
I wanna create formula :
*** 12 MAT ideally from (May 2018-Jun2017). I wanna compare the trend between 12MAT year to Year.
Right now i have acheived 2 Formulas below , And Would like to create another Formula of 12 MAT from (May 2018-Jun2017).
Hi @Chanleakna123 ,
Instead of making it 12 months on each of the measure why don't you make it a year calculation:
12MAT L1Y ( May 2019-Jun 2018) =
CALCULATE (
'UC & NSR Type'[$NSR Or UC],
FILTER (
ALL ( '445 Calendar'[Date] ),
'445 Calendar'[Date]
<= ENDOFMONTH ( DATEADD ( '445 Calendar'[Date], -1, YEAR ) )
&& '445 Calendar'[Date]
>= ENDOFMONTH ( DATEADD ( '445 Calendar'[Date], -2, YEAR ) )
)
)
12MAT L2Y ( May 2018-Jun 2017) =
CALCULATE (
'UC & NSR Type'[$NSR Or UC],
FILTER (
ALL ( '445 Calendar'[Date] ),
'445 Calendar'[Date]
<= ENDOFMONTH ( DATEADD ( '445 Calendar'[Date], -2, YEAR ) )
&& '445 Calendar'[Date]
>= ENDOFMONTH ( DATEADD ( '445 Calendar'[Date], -3, YEAR ) )
)
)
Be aware that his may need some adjustments, especcially on the start date that is set to end of month (and probably you need it to start of month.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português@MFelix , hi , i have used your calculation , it doesn't work from my side , when i put next to 2 other calculation i haved shared.
Now I have year Filter 2020 , When i put yours formula in , it shown blank.
Can you share a sample file?
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCovering 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 |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
148 | |
116 | |
104 | |
89 | |
65 |