Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hello,
I want to build a measure to calculate the days in the selected month. Please help.
Solved! Go to Solution.
@Unmona_D , Try like
day(eomonth(maxx(allselected(Table), Table[Start Date]),0))
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?
@Unmona_D , Try like
day(eomonth(maxx(allselected(Table), Table[Start Date]),0))
Thank you Mariusz. But the issue is this doesnt come from a uniform date calendar (with all dates included for a month)
User | Count |
---|---|
80 | |
74 | |
63 | |
61 | |
45 |
User | Count |
---|---|
108 | |
98 | |
89 | |
82 | |
61 |