March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I need something that gives me just the month and year (it can be the first day of the month or last as long as it is not Saturday or Sunday) to be able to calculate revenue per month. See row 2. I basically need to repeat the 41,044 for every month between Jan 2022 and Dec 2024
This is what I tried but it is not working
Table.AddColumn(#"Reordered Columns", "Transaction Date", each List.Select( List.Transform( {Number.From([Start Date])..Number.From([End Date])}, each Date.From(_) ), each Date.EndofMonth(_, 1) ))
Solved! Go to Solution.
Hi @luzsoulez ,
please check out the function that I've published here: Date.DatesBetween to retrieve dates between 2 dates in Power BI and Power Query – The BIccountant
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hi @luzsoulez ,
please check out the function that I've published here: Date.DatesBetween to retrieve dates between 2 dates in Power BI and Power Query – The BIccountant
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Thanks that worked! Brilliant 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.