Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

If function to establish a month between a closure date

Hi,

 

I need to establish a month between a closure date.

 

 StartEnd
January21/12/202020/01/2021
Febraury21/01/202120/02/2021
March21/02/202120/03/2021
April21/03/202120/04/2021
May21/04/202120/05/2021
June21/05/202120/06/2021
July21/06/202120/07/2021
August21/07/202120/08/2021
September21/08/202120/09/2021
October21/09/202120/10/2021
November21/10/202120/11/2021
December21/11/202120/12/2021

 

And this related to a column of month.

 

I hope you can help.


Cheers!

4 REPLIES 4
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Could not download form the link you shared.

vluwangmsft_0-1636099081483.png

 

Best Regards

Lucien

VahidDM
Super User
Super User

Hi @Anonymous 

 

Can you add a result table that you are looking for?

 

Appreciate your Kudos!!

 

Anonymous
Not applicable

I have attached a file which shows what I need to do. The idea is to incorporate and if function or a function which searches the date on column A and contrast it between the dates from columns from E to G and return the correcto month which is on column E.

 

You can download the workbook through this link https://gofile.io/d/Uh9yab

 

I will be waiting for your response.


Cheers!.

Hi,

Try this calculated column formula in the Data Table.

Month = CALCULATE(MAX(Dates[Month]),FILTER(Dates,Dates[Start]<=EARLIER(Data[Programmed Date])&&Dates[End]>=EARLIER(Data[Programmed Date])))

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.