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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.