Forum Discussion
YTD % Growth when using Fiscal Year
Hi MuniqueCrespo,
I'd like to suggest you use the fiscal year tag field to find out correspond calendar date range of start/end date at first. Then you can use these date values as condition in the formula calculation to limit the calculation ranges.
formula =
VAR currFY =
MAX ( 'dCalendar'[Fiscal Year] )
VAR currDate =
MAX ( 'Table'[Date] )
VAR range =
CALCULATETABLE (
VALUES ( 'dCalendar'[Date] ),
FILTER ( ALLSELECTED ( 'dCalendar' ), [Fiscal Year] = currFY )
)
RETURN
CALCULATE (
[T. revenue],
FILTER (
ALLSELECTED ( 'Table' ),
[Date] >= MINX ( range, [Date] )
&& [Date] <= MAXX ( range, [Date] )
&& [Date] <= currDate
)
)
Regards,
Xiaoxin Sheng
Hello,
Thank you for your reply. To find the YTD values I have the Formula below which works fine for me. Your formula does the same as below. What I need help with is the find the YTD % Growth.
YTD Returns Calculation
For example, if an investor’s portfolio was worth $200,000 at the beginning of the Fiscal Year and is currently worth $220,000 in the middle of the Fiscal Year, the year to date return is calculated as 10%.
- Year to Date (YTD) = [($220,000 – $200,000) ÷ $200,000) = 0.10, or 10%
- Anonymous3 years agoNot applicable
HI MuniqueCrespo,
Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng