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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ChrisWilliams
Advocate II
Advocate II

Fiscal Year Calculated Columns from date ranges

I'm creating a date table and I've used the Calendar() function as the basis.  So, I have a Date column in the Dates table, as well as other calculated columns for Month, Quarter, etc.  I want to add an additional calculated column for Fiscal Year, based on start and end dates defined in another table in my model.

 

I have a GLYEAR table that has the following structure:

Date Start_Date

Date End_Date

int  FRL_FISCAL_YEAR

 

FiscalYear.PNG

Basically the psuedo code for the calculated colum should be "If Dates[Date] >= GLYEAR[START_DATE] and Dates[Date] <= GLYEAR[START_DATE] then FRL_FISCAL_YEAR

 

There is no existing relationship between Dates and GLYEAR.

 

Appreciate any pointers.

1 ACCEPTED SOLUTION
ChrisWilliams
Advocate II
Advocate II

This seems like it's giving me the results I need.  Does anyone see any issues with this solution?

 

Fiscal Year = CALCULATE(VALUES(GLYEAR[FISCAL_YEAR]), FILTER(GLYEAR, Dates[Date] >= GLYEAR[START_DATE] && Dates[Date] <= GLYEAR[END_DATE]))

View solution in original post

2 REPLIES 2
ChrisWilliams
Advocate II
Advocate II

This seems like it's giving me the results I need.  Does anyone see any issues with this solution?

 

Fiscal Year = CALCULATE(VALUES(GLYEAR[FISCAL_YEAR]), FILTER(GLYEAR, Dates[Date] >= GLYEAR[START_DATE] && Dates[Date] <= GLYEAR[END_DATE]))

Hi @ChrisWilliams,

 

According to your description, the formula provided above should work in this scenario.Smiley Happy

 

In addition, could you accept your reply as solution to help others who has similar issue easily find the answer and close this thread?

 

Regards

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors