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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Appe
Frequent Visitor

Define fiscal year in a measure

Hello,

 

The client I'm working with just changed their fiscal year from the normal calendar year to july - june and I need to make some changes in Power BI accordingly. We've been using the following formula to summarize the budget:

 

FSG Budget FO = CALCULATE(sum('Anso Goal TG'[FSG]);
year('Anso Goal TG'[Goal startdate]) = year(now()); month('Anso Goal TG'[Goal startdate]) < month(now()))

 

However since year now is defined by the calendar year I need to make change the formula to correspond with the new fiscal year. The strucutre of the formula above is used in some additional places so it would probably be best to define the fiscal year somehow to be able to re use the logic.

 

Any ideas?

 

Best,

Appe

3 REPLIES 3
v-qiuyu-msft
Community Support
Community Support

Hi @Appe,

 

Assume the fiscal year is from July 1st to June 30th of the next year. You can create a calculated column below: 

 

Fiscal Year = IF(MONTH('Table'[Date]) <=6,YEAR('Table'[Date]),YEAR('Table'[Date]) +1)

 

Then replace the year(now()) with this new column Fiscal Year. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-qiuyu-msft,

 

Thank you for the reply!

 

In your solution, would it be something like IF(MONTH('accounts'[DateWon]) <=6,YEAR('accounts'[DateWon]),YEAR('accounts'[DateWon]) +1)? So i'd re use the same date throughout the formula? 

 

Best,

Anders

 

 

Hi @Appe,

 

Yes, you need to create a new column to return fiscal year based on DateWon column in your scenario, then use this new column in FSG Budget FO formula. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.