Forum Discussion
HenryJS
6 years agoPost Prodigy
Calculate Week Ending Date
Hi all,
How can I calculate the week ending date from a date column in power query?
I would like to find the week end (Sunday), for example, 06/08/20 would be 09/08/2020
Thanks,
Hi HenryJS ,
In power query,add a query as below:
= Table.AddColumn(#"Changed Type", "Custom", each Date.EndOfWeek([Date],1))And you will see:
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
3 Replies
- v-kelly-msftCommunity Support
Hi HenryJS ,
In power query,add a query as below:
= Table.AddColumn(#"Changed Type", "Custom", each Date.EndOfWeek([Date],1))And you will see:
Best Regards,
KellyDid I answer your question? Mark my post as a solution! - amitchandakSuper User
- Greg_DecklerCommunity Champion
HenryJS - Here is a DAX way of doing week ending.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Week-Ending/m-p/389293#M120