Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I need the total number of days in the month based on the Year/Month; for example,
Year/Month MonthName MonthNo NoOfDays
2022/01 January 1 31
2022/02 February 2 28
so that is the year was a leap year, February would have 29 days. I will be using a Year/Month filter on visuals and a measure that will need the days in the month to calculate unit hours in that month. I have the measure I need already, but I just need to update for the filtered number of days.
Solved! Go to Solution.
You can use this expression in a calculated column, provided you have a column with a date value within the desired month.
DaysInMonth = DAY(EOMONTH('Date'[Date], 0))
You can use this expression in a calculated column, provided you have a column with a date value within the desired month.
DaysInMonth = DAY(EOMONTH('Date'[Date], 0))