Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello,
I want to build a measure to calculate the days in the selected month. Please help.
Solved! Go to Solution.
@Anonymous , Try like
day(eomonth(maxx(allselected(Table), Table[Start Date]),0))
@Anonymous ,
In case it coming from date calendar
1. day(eomonth(maxx(allselected(Date), Date[Date]),0))
2. Count(Date[date])
In case this month without a date. we need to additional coding
Hi Amit,
Thank you. But this doesnt come from a date calendar. It is start of each month. Hence, the issue. Is there a way that the measure calculates the number of days based on the slicer input?
Hi @Anonymous
Just count rows of your date table like: COUNTROWS( dates )
Thank you Mariusz. But the issue is this doesnt come from a uniform date calendar (with all dates included for a month)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.