Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.