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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ljx0648
Helper III
Helper III

Calculate Fiscal year to date sales with different dates in three years

Dear Community,

 

My company's fiscal year starts from Nov 1st each year and ends with Oct 31st as the last date every year. For example, Fiscal year 2023 starts from Nov 1st, 2022 and ends with Oct 31st, 2023.

 

For all the prior years, I am using a Fiscal Year to Date dax formula with no issue:

 

FYTD_Sales = Calculate (sum(salestable[sales]),DatesYTD(datetable[date],"31/10")

 

However, I got a special request from my boss:

 

For Fiscal year 2024, we need to add Nov 1st, 2024 as the last date of the Year WITHOUT impacting all calculations of the prior years.

 

In other words, For ALL the fiscal prior fiscal 2024, I can still use the formula above. But for fiscal 2024 I will need to create another formula from Nov 1st, 2023 to Nov 1st 2024. THEN for Fiscal 2025, I will need to create another formula from Nov 2nd, 2024, till Oct 31st 2025.

 

Lastly, the ultimate goal is to put all the THREE fiscal year FYTD # above in one chart for comparison with Month Number on X-axis.

 

May I know if anyone can share any ideas or insights on how to solve this request?

 

Any tips are very much appreicated!

 

Thank you all

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @ljx0648 

It seems that you have gotten a solution in this thread: Solved: Calculate Fiscal Year To Date value using a column... - Microsoft Fabric Community.

 

Could you please mark this helpful post as “Answered”?

This will help others in the community to easily find a solution if they are experiencing the same problem as you.

Thank you for your cooperation!

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

17 REPLIES 17
Anonymous
Not applicable

Hi, @ljx0648 

It seems that you have gotten a solution in this thread: Solved: Calculate Fiscal Year To Date value using a column... - Microsoft Fabric Community.

 

Could you please mark this helpful post as “Answered”?

This will help others in the community to easily find a solution if they are experiencing the same problem as you.

Thank you for your cooperation!

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ryan_mayu
Super User
Super User

@ljx0648 

maybe you can try this to create a fiscal year column

 

fiscalyear = SWITCH(TRUE(),
'date'[Date]<date(2024,11,1) &&month('date'[Date])<11,year('date'[Date]),
'date'[Date]<date(2024,11,1) &&month('date'[Date])>=11,year('date'[Date])+1,
'date'[Date]>=date(2024,11,1) && (month('date'[Date])<11||(month('date'[Date])=11 && day('date'[Date])=1)),year('date'[Date]),
year('date'[Date])+1)
 
11.PNG12.PNG




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi Freeman,

May I know how to write the Fiscal Year to Date sales with the fiscal year column you suggested?

I already created a datetable with fiscal year column listed "2023","2024“,"2025" .

Can you please show me a formula using that column to calculate fiscal year to date value?

Thank you

what do you mean by calculate fiscal year to date value?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




For example, I am calculating Fiscal Year to Date Sales using this formula as of now:

 

FYTD_Sales = Calculate (sum(salestable[sales]),DatesYTD(datetable[date],"31/10")

 

However, this formula use "31/10" (date column) as the last date of the fiscal year and it applies to all other year.

 

I am looking for a formula that can use the Fiscal Year column you just suggested so I can break them out separately for each fiscal year.

 

Hope this clarifies the question.

 

since now you have the fiscal year column , you can just use fiscal year column to display every year's data. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi Ryan,

 

Please let me show the desired outcome with sample data:

 

MonthMonthly SalesFYTD Sales
122
235
349
4514
5721

 

I can now display the "Month" & "Monthly Sales" using the raw data and the Fiscal Year Column.

 

However, I am looking for a Formula which can provide me the result for the "FYTD Sales"

 

Thank you

 

How do you want to display  2023/11/1? belongs to month 12 FY 23 or month 1 FY 24?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi Ryan,

 

I am hoping to create the table for each fiscal year.

 

For fiscal 2024, Nov 2023 is Month 1 & Nov 2024 is Month 12

 

Best regards

if this is your sample data, what's the expected output?

 

date value
2023/8/1 100
2023/9/1 200
2023/10/1 300
2023/11/1 400
2023/12/1 500
2024/8/1 600
2024/9/1 700
2024/10/1 800
2024/11/1 900
2024/12/1 1000




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Sorry Ryan, Please neglect the one I replied earlier with Nov 1 2024 = 1900.. My brain is not working well in the morning.

 

Please check the CORRECT number I am looking for using the sample data:

 

DateValueFYTD Value
2023-08-01100100
2023-09-01200300
2023-10-01300600
2023-11-01400400
2023-12-01500900
2024-08-016001500
2024-09-017002200
2024-10-018003000
2024-11-019003900
2024-12-0110004900

@ljx0648 

2024-11-01 900

3900

Is this the beginning of a new fiscal year?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi Ryan,

This is where the special request kicks in. For Fiscal 2024, the date starts from Nov 1, 2023 till Nov 1 2024.

Nov 2, 2024 is the start of new fiscal year

then why 2024/12/1 is 1900 not 1000?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi Ryan,

Using the sample data you provided, this is my expected outcome (column FYTD Value):

 

DateValueFYTD Value
2023-08-01100100
2023-09-01200300
2023-10-01300500
2023-11-01400400
2023-12-01500900
2024-08-016001100
2024-09-017001300
2024-10-018001500
2024-11-019001700
2024-12-0110001900
FreemanZ
Super User
Super User

hi @ljx0648 ,

 

try to write three measures and plot all in the line chart.

Hi Freeman,

May I know how to write the specific measure you suggested?

I already created a datetable with fiscal year column listed "2023","2024“,"2025" .

Can you please show me a formula using that column to calculate fiscal year to date value?

Thank you

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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