The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
How do I write a formula that creates a new column that takes a range of dates and delivers a new date?
The dates on the left are the ones that I have. I want to create a custom column with the starting date of the next quarter, based on the "Initial date" column. So whichever quarter the "Initial date" falls within the custom column will provide the first day of the next quarter. Q1 = Jan-Mar, etc.
The custom column needs to be visible in Power Query.
Thank you
Solved! Go to Solution.
@Anders_G , Try in power query like
Date.AddQuarters([Column],1)
or
Date.StartOfQuarter(Date.AddQuarters([Column],1))
If this works, Mark as a solution
@Anders_G , Try a new column
eomonth([Date],if( mod(Month([Date]),3) =0,0,3-1*mod(Month([Date]),3)))+1
Ran in to a problem. I wasn't aware of at the time of writing my initial question. But I need the custom column created to be visible in Power Query. Unfortunately this calculated DAX column is not visible.
@Anders_G , Try in power query like
Date.AddQuarters([Column],1)
or
Date.StartOfQuarter(Date.AddQuarters([Column],1))
If this works, Mark as a solution
That's brilliant. thank you!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
108 | |
77 | |
75 | |
43 | |
37 |
User | Count |
---|---|
156 | |
109 | |
64 | |
60 | |
55 |