Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hello,
I need to extract previous month for today.
I tried previousmonth= date(year(today ()),month(today) - 1,day(today()))
But it displays 02/03/2021 which is wrong, how to correct it please?
Solved! Go to Solution.
@Anonymous , because there is no 30th in feb , Try a measure like
previousmonth = Var _1 = date(year(today ()),month(today()) - 1,day(today())) Return if(EOMONTH(today(),-1) < _1, EOMONTH(today(),-1) , _1)
@Anonymous , because there is no 30th in feb , Try a measure like
previousmonth = Var _1 = date(year(today ()),month(today()) - 1,day(today())) Return if(EOMONTH(today(),-1) < _1, EOMONTH(today(),-1) , _1)