The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLUCIONADO

formula to filter out fiscal YTD?

ryanzhang487
Asteroide

hello Community, I have a [Date] column with all the dates value, my fiscal year is beginning of Oct to End of Sept, I want to set up a filter for fiscal Year to Date (in this year case, it is since 2023-Oct-1) and set it to true,

what will be the formula for that?

 

Thank you for your help

9 RESPOSTAS 9
Raj
Nebulosa

@ryanzhang487 when you put filter on date field you have between option for start and end date>

the format you displayed is not a Alteryx date field 
kindly check if it is date then you can use the between option from Alteryx Filter tool.

ryanzhang487
Asteroide

Thanks, but I will need a dynamic fiscal YTD, If i put a start date in filter that would be static not dynamic

Raj
Nebulosa

@ryanzhang487 Sharing Formula for Dynamic.
Please confirm you fiscal year is oct last year to sept this year

 

ryanzhang487
Asteroide

yes correct

aatalai
Aurora

If DateTimeMonth(DateTimeNow())>9 then todate("DateTimeYear(DateTimeNow())-09-31"))

 

else  todate(  "tostring(tonumber((DateTimeYear(DateTimeNow())-1)))-09-31)")

ryanzhang487
Asteroide

thanks, it seems it does not work, assuming my column is [DATE], there is no column in the formula

aatalai
Aurora

That formula is to get to the most recent fiscal year

 

Raj
Nebulosa

@ryanzhang487 find the formual attached.

[DateField] > IF DateTimeMonth(DateTimeToday()) > 9 THEN
DateTimeFormat(ToString(DateTimeYear(DateTimeNow())) + "-09-30","%Y-%m-%d")
ELSE
DateTimeFormat(ToString(DateTimeYear(DateTimeAdd(DateTimeNow(), -1, "years"))) + "-09-30","%Y-%m-%d")
ENDIF

Raj
Nebulosa

Please mark it as done and like the solution if this was the required output.

Rótulos
Autores com maior número de soluções