Forum Discussion
tkfisher
4 years agoFrequent Visitor
Complex Compounding Interest Rates
Hi All, I have a table with dates, "growth rates" and product keys. See snapshot below: Each product category may have a different "growth rate" for each date, though you can only...
- 4 years ago
Ok. Please try
Compounding Value = VAR DateQuickNameTable = CALCULATETABLE ( 'date table', ALLEXCEPT ( 'date table', 'date table'[Quickname] ) ) VAR CurrentDate = 'Collection Growth Table'[date] RETURN PRODUCTX ( FILTER ( DateQuickNameTable, 'Collection Growth Table'[Date] <= CurrentDate ), 1 + 'Collection Growth Table'[Value] )
tkfisher
4 years agoFrequent Visitor
Sorry was wrong on my DAX again.... here you go
Compounding Value =
VAR LatestDate =
MAX ( 'Collection Growth Table'[date] )
VAR UnfilteredTable =
ALL ( 'Collection Growth Table' )
RETURN
CALCULATE (
PRODUCTX ( 'Collection Growth Table', 1 + 'Collection Growth Table'[Value] ),
FILTER (
ALL ( 'Collection Growth Table' ),
'Collection Growth Table'[Date] <= LatestDate
)
)
tamerj1
Community Champion
4 years agoOk. Please try
Compounding Value =
VAR DateQuickNameTable =
CALCULATETABLE (
'date table',
ALLEXCEPT ( 'date table', 'date table'[Quickname] )
)
VAR CurrentDate = 'Collection Growth Table'[date]
RETURN
PRODUCTX (
FILTER ( DateQuickNameTable, 'Collection Growth Table'[Date] <= CurrentDate ),
1 + 'Collection Growth Table'[Value]
)- tkfisher4 years agoFrequent Visitor
This works, thank you!