Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
94 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |