Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Calculating IRR using slicer and projected data

Hello   I am trying to calculate the projected IRR for a particular company, i.e. the IRR on a particular date in the future. I have two relevent data tables that I am using, one that provides the ...
  • johnt75's avatar
    4 years ago

    You could add in the future date and value by creating a variable as the UNION of the base data and ROW for the future projections, something along the lines of

    Rate of return =
    VAR tmpTable =
        UNION (
            SELECTCOLUMNS (
                FILTER ( 'Base Table', 'Base Table'[Some column] = "filter value" ),
                "_Date", 'Base Table'[Date],
                "_Value", 'Base Table'[Value]
            ),
            ROW (
                "_Date", SELECTEDVALUE ( 'Future Dates'[Date] ),
                "_Value", [Projected future value measure]
            )
        )
    RETURN
        XIRR ( tmpTable, [_Value], [_Date] )