I would like to get a the first day of the next month/quarter/year if a date is not on the start day of that period in Power BI. So I made the following custom column in M, based on an interval and the date. The interval for monthly is 1, quarterly is 3 and annually is 12. I seem to have som issues with and/or, because with the input date of 1 October 2024 (the start of the last quarter) it returns 1 January 2025 instead of 1 October 2024. Could you please help me finding out what I'm doing wrong?