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, can someone please tell me how to add a column with end of month date in power bi query.
The month is based on today's date. So if today is 12/04/2021 i need EOM date to be 30/04/2021.
thank you
Solved! Go to Solution.
@Anonymous
Add the following custom column, then convert the data type to Date only.
= Date.EndOfMonth(DateTime.LocalNow())
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
Hi. I need to have a new column with the last date from another column, how could I do that?
@Anonymous
Add the following custom column, then convert the data type to Date only.
= Date.EndOfMonth(DateTime.LocalNow())
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
Awesome, it worked! Thanks Paul 🙂
Hello @Anonymous ,
There is a Date.EndOfMonth function in Power Query. Have a look at the article below:
https://docs.microsoft.com/en-us/powerquery-m/date-endofmonth
So you can add custom column with the code:
=Date.EndOfMonth([Date])
Did I answer your question? Mark my post as solution!
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
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.