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.
Hi experts,
I want to calculate start week and end week but there is condition I have attached a screen shot.( Week should always be start from 1st day of the month )
I want to calculate 3 different measure "Start week", "End week" and "No of days".
I want above mentioned result.
Please guys I need it on urgent basis. Any help would be appreciated.
Thank You in Advance.
Solved! Go to Solution.
@Uzi2019 , You can get the start or week like
Start Month = STARTOMONTH('Date'[Date])
Month Week Start = [Start Month] + QUOTIENT(datediff([Start Month],[date],day),7) *7
@Uzi2019 , You can get the start or week like
Start Month = STARTOMONTH('Date'[Date])
Month Week Start = [Start Month] + QUOTIENT(datediff([Start Month],[date],day),7) *7
@amitchandak Thank you so much Start week is working now.
Could you please also share the EndWeek like I mentioned in Screen shot.
@Uzi2019 , Try like
Month Week end = if( [Month Week Start]+7 <= eomonth([Month Week Start] ,0),[Month Week Start]+7 ,eomonth([Month Week Start] ,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 |
---|---|
107 | |
98 | |
78 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |