Forum Discussion
Previous Month Calculation
HI, IfaZ_1
Try below measure
MoM Total Ticket =
var previous_month = maxx(
filter(
all('FY Date'[Month]),
'FY Date'[Month]<min('FY Date'[Month])
))
return
CALCULATE(
[Total Tickets],
'FY Date'[Month]=previous_month
)
Best Regards,
Dangar
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Dangar,
It is giving me this error
- Dangar3322 years ago
Resident Rockstar
MoM Total Ticket = var previous_month = maxx( filter( all('FY Date'[Month]), 'FY Date'[Month]<min('FY Date'[Month]) ),'FY Date'[Month]) return CALCULATE( [Total Tickets], 'FY Date'[Month]=previous_month )- IfaZ_12 years ago
Helper I
Hi Dangar,
It is showing blank
- Irwan1 year ago
Super User
hello IfaZ_1
i downloaded your sample file in your other post couple days ago.
i was meant to ask you, is there any reason you collect month from 'Page 1' tbl?
if you take month value from 'FY Date' tbl, you can see the result already.
for your record, i didnt change any DAX, only change month value from 'Page 1' tbl to 'FY Date' tbl.
MoM SLA or MoM Totak Ticket use time intellegence value from 'FY Date' tbl so it might be the issue why it shows no value (i am not sure on this, but it does show the previous value).
Hope this will help.
Thank you.