05-02-2020 13:04 PM
In my recent quest to create or catalog as many DAX equivalents for Excel functions, this one (Discount Rate) or DISC took way longer than it should have. This is due to the fact that the Excel documentation on the function is pretty much garbage. So much so that the answer provided for the example is actually wrong and not what Excel returns at all. Yeah, fun figuring that out...
VAR __BasisTable =
"Days",( DATE([Value],12,31) - DATE([Value],1,1) ) * 1. + 1
VAR __B =
([Redemption] - [Price]),
([Maturity] - [Settlement]) * 1.
Proud to be a Super User!