Forum Discussion
wi11iamr
9 years agoAdvocate II
Calculate compound increased fee from initial start date (Power Query)
Hi there, Having the below sample dataset within a query, I have a monthly transaction record for each Contract reference number, along with the contract's initial fee for the fiirst year, and th...
- 9 years ago
Calculated Fee = 'Table'[InitialFee] * POWER ( 1 + 'Table'[ContractAnnualEscalation], DATEDIFF ( CALCULATE ( FIRSTDATE ( 'Table'[ContractStartDate] ), ALLEXCEPT ( 'Table', 'Table'[ContractRef#] ) ), 'Table'[TransactionDate], YEAR ) )I had several versions of this - it seems this is the simplest so far!
Hope this helps! :smileyhappy:
Sean
9 years agoCommunity Champion
Calculated Fee =
'Table'[InitialFee]
* POWER (
1 + 'Table'[ContractAnnualEscalation],
DATEDIFF (
CALCULATE (
FIRSTDATE ( 'Table'[ContractStartDate] ),
ALLEXCEPT ( 'Table', 'Table'[ContractRef#] )
),
'Table'[TransactionDate],
YEAR
)
)I had several versions of this - it seems this is the simplest so far!
Hope this helps! :smileyhappy: