Forum Discussion
Monthly Cutoff date
- 2 years ago
Hi Anonymous
I would approach this in Power Query
Create a custom column in your table and something similar replacing the Date column with your date column name
if Date.Day([Date]) >= 26 and Date.Month([Date]) >= 11 and Date.Day([Date]) <= 31 and Date.Month([Date]) <= 12 then #date(Date.Year([Date]), 12, 1) else if Date.Day([Date]) >= 26 then Date.StartOfMonth(Date.AddMonths([Date], +1)) else Date.StartOfMonth([Date])If you are then using a Date Table and want to make calculations on the the Cut off, create either a one to many relationship with the new Cutoff date column or create the same relationship and have it set as in active relationship. When creating measures, use USERELATIONSHIP to activate the relationship
Hope this helps
Joe
If this post helps, then please Accept it as the solution
Hi Anonymous
I would approach this in Power Query
Create a custom column in your table and something similar replacing the Date column with your date column name
if Date.Day([Date]) >= 26 and Date.Month([Date]) >= 11 and
Date.Day([Date]) <= 31 and Date.Month([Date]) <= 12 then #date(Date.Year([Date]), 12, 1) else
if Date.Day([Date]) >= 26 then Date.StartOfMonth(Date.AddMonths([Date], +1))
else Date.StartOfMonth([Date])
If you are then using a Date Table and want to make calculations on the the Cut off, create either a one to many relationship with the new Cutoff date column or create the same relationship and have it set as in active relationship. When creating measures, use USERELATIONSHIP to activate the relationship
Hope this helps
Joe
If this post helps, then please Accept it as the solution
- Anonymous2 years agoNot applicable
Thanks. This one works fine.
- JoeBarry2 years agoSolution Sage
Hi Anonymous
If it works, can yopu accept it as a solution, it helps other user find the correct answer easier for similar questions
Thanks
Joe