how to subtract months giving a specific criteria - if-statement

hi I have a rolling last 12 months in excel but I would like to exclude specific months so that way it will skip does months on the report. but the formula that I have wont work for every month. the months that I would like to skip is march 2020, april 2020, may 2020, june 2020. I have a drop list I which it will subtract the last 12 months.
enter image description here

Related

How to use the EOMONTH DAX to get the last date of iso month?

ISO months start and end at various dates. Not necessarily 1st/31st.
How to use the EOMONTH DAX to get the last date of iso month?
DAX can handle everything that follows a certain logic.
In your example Jan is week 1-4, Feb is 5-8 and Mar is probably 9-12. But April has to be 13-17 (5 weeks), which ends on Apr-30? After all 52 weeks divided by 4 is 13 not 12. So some "months" have to have 5 weeks instead of 4.
I'm afraid EOMONTH is not familiar with your calendar preferences as long as they not defined in any ISO regulation.
However, as mentioned above, it's possible to find the first Monday and last Sunday within a month using DAX, but not with the EOMONTH function.

Last month Same period

I'm struggling to get the same period of last month sum. I want to compare the current month period, for instance, i have data complete June, July and 1-10 Aug 2022 so I want to get the sales from last month 1st to July 10th.
Result required as per image paste
I was facing with the same issue, but then I found the link solution worked for me.
Dax Same period last months
Hope it helps!
Cheers

Calendar table with changing start date

I work in an educational department where the start date of our academic calendar changes every year. Some years it might be week 9 of the year, some years it might be week 10. There is no formula used to figure out this start date, it's based a combination of factors and is picked by humans.
I want to be able to compare calls received in week 1 of the academic calendar 2017 to calls received in week 1 of the academic calendar 2018 and 2019.
I am using PowerBI desktop and trying to create a calendar table that includes a column "academic calendar week" or similar.
Does anyone have any suggestions on how to offset start date of the calendar by a different number of weeks for each year?

Microsoft Power BI: Line chart last 13 weeks data for 3 years

I need to show line chart visual for last 13 years data for 2017,2018 and 2018. Can anyone tell me how I can achieve this?
I have a table called Profit
columns : Profit, WeekEndingDate, Year
I tried to create last 13 weeks measure but only showed 7 weeks as we are only 7 weeks in 2019 and also only showed data for 2018 and 2019.
I need to display each year individually with 13 weeks data.
Assuming these are linked to dates.
You can use the visual filters to show a date range from today and step back 3 months
Edit:
could you post the measure you created to get the last 13 weeks, it needs to be edited to ignore year. that should do the trick

Calculating number of Months from one date to another in power bi

I was wondering if there is a way to calculate how many months it has been from one date to another in Power Bi.
For example the date would be October 1st 2014 and I would want to calculate how many months ago that was to the current date.