Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
Hey guys,
Can anybody help me with the below concern?
I'm looking to get the last date of next year February month. For example, if the current year is 2022, I want next year's February end date, which is 28-02-2023. I'm trying to get it with the below DAX command but the value is populating "Blank" when I pull it in a card.
Solved! Go to Solution.
Try this you should have the value :
nextclosingdate=
var nextyear=year(today())+1
var datemaxmarch=date(nextyear,3,1)
return
datemaxmarch-1
but the much simple would be to create the dfate on your date table with calendar function
Try this you should have the value :
nextclosingdate=
var nextyear=year(today())+1
var datemaxmarch=date(nextyear,3,1)
return
datemaxmarch-1
but the much simple would be to create the dfate on your date table with calendar function
i
If you have a date table with dates up to end of feb 2023just do this :
nextclosingdate=
var nextyear=year(today())+1
return
calculate(max(Date[date],Date[Year]=nextyear&&Month=2)
Hi JamesFr06,
Thanks for your quick response. I don't have dates going till Feb 2023. Reason why I'm getting a blank value in the card. Is there a way where I can get the result without depending on any column?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!