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.
Hello ,
I have Dates table in Power Query , i need to add 2 new columns extracted from the date column ,
Column 1 : Start of previous month
Column 2 : Start of Previous Quarter
I need the previous Month and Quarter ,
Like the first cell to give me 01-Dec-97 and so on
Many Thanks
Solved! Go to Solution.
For previous Start of month
= Date.StartOfMonth(Date.AddMonths([Date],-1))
For previous start of quarter
= Date.StartOfQuarter(Date.AddQuarters([Date],-1))
Hi, @bhelou
You can also try to solve the problem with DAX.
Column:
Start of Month = STARTOFMONTH('Table'[Date])
Start of previous month = EDATE([Start of Month],-1)
Start of Quarter = STARTOFQUARTER('Table'[Date])
Start of Previous Quarter = EDATE([Start of Quarter],-3)
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
For previous Start of month
= Date.StartOfMonth(Date.AddMonths([Date],-1))
For previous start of quarter
= Date.StartOfQuarter(Date.AddQuarters([Date],-1))
Thank you worked , Thanks for help
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 |
---|---|
112 | |
97 | |
85 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |