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 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
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |