Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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,
Solved! Go to Solution.
Hi @HenryJS ,
In power query,add a query as below:
= Table.AddColumn(#"Changed Type", "Custom", each Date.EndOfWeek([Date],1))
And you will see:
Hi @HenryJS ,
In power query,add a query as below:
= Table.AddColumn(#"Changed Type", "Custom", each Date.EndOfWeek([Date],1))
And you will see:
@HenryJS - Here is a DAX way of doing week ending.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Week-Ending/m-p/389293#M120
@HenryJS , In case of DAX code, please find
Calendar in M
https://radacad.com/create-a-date-dimension-in-power-bi-in-4-steps-step-1-calendar-columns
User | Count |
---|---|
127 | |
108 | |
99 | |
63 | |
62 |
User | Count |
---|---|
136 | |
113 | |
102 | |
71 | |
60 |