Forum Discussion
Weeks Duration
Hi,
Need to get the First date and last Date as eg: "01/01/2020 - 01/06/2020" for respective Weeks.
1. calculated Table with 04/01/2020 - 03/31/2020
2. calculated Week in column Week
Required to get the first Day and Last day in above format in another column.
Attached sample file for reference.
https://drive.google.com/file/d/1srNmdkQ19t1DaJIhoRsWS19frJ7T9r6n/view?usp=sharing
REgards
Try
link : https://www.dropbox.com/s/9jelo8gddv88sq0/Week%20start%20end%20Monday.pbix?dl=0
Week Start date = 'Table'[Date]-1*WEEKDAY('Table'[Date],2)+1 Week End date = 'Table'[Date]+7-1*WEEKDAY('Table'[Date],2) Week of = FORMAT('Table'[Week Start date],"dd/mm/yyyy") & " "& FORMAT('Table'[Week End date],"dd/mm/yyyy")Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
3 Replies
- AnonymousNot applicable
Week Starts for Monday
- amitchandakSuper User
Try
link : https://www.dropbox.com/s/9jelo8gddv88sq0/Week%20start%20end%20Monday.pbix?dl=0
Week Start date = 'Table'[Date]-1*WEEKDAY('Table'[Date],2)+1 Week End date = 'Table'[Date]+7-1*WEEKDAY('Table'[Date],2) Week of = FORMAT('Table'[Week Start date],"dd/mm/yyyy") & " "& FORMAT('Table'[Week End date],"dd/mm/yyyy")Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin- AnonymousNot applicable
Thanks Amith... it works.