<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Calculating IRR using slicer and projected data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-IRR-using-slicer-and-projected-data/m-p/2687471#M80790</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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 various cashflows and one that contains the various fields used to calculate the valuation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;TD&gt;Type&lt;/TD&gt;&lt;TD&gt;Company&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1/1/2022&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;TD&gt;Realisation&lt;/TD&gt;&lt;TD&gt;Company A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/1/2022&lt;/TD&gt;&lt;TD&gt;-2000&lt;/TD&gt;&lt;TD&gt;Investment&lt;/TD&gt;&lt;TD&gt;Company A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3/1/2022&lt;/TD&gt;&lt;TD&gt;3000&lt;/TD&gt;&lt;TD&gt;Fees&lt;/TD&gt;&lt;TD&gt;Company A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4/1/2022&lt;/TD&gt;&lt;TD&gt;10000&lt;/TD&gt;&lt;TD&gt;Enterprise Value (EV)&lt;/TD&gt;&lt;TD&gt;Company A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5/1/2022&lt;/TD&gt;&lt;TD&gt;4000&lt;/TD&gt;&lt;TD&gt;Investment&lt;/TD&gt;&lt;TD&gt;Company B&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Company&lt;/TD&gt;&lt;TD&gt;EBITDA&lt;/TD&gt;&lt;TD&gt;Multiple&lt;/TD&gt;&lt;TD&gt;Enterprise Value (EV)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4/1/2022&lt;/TD&gt;&lt;TD&gt;Company A&lt;/TD&gt;&lt;TD&gt;5000&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;10000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a series of slicers to create different adjustments to the EV calculation, i.e. increase multiple by 5%. This then creates a projection of what the EV will be in the future, based on the various adjustments to the variables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;Projected_EV=&lt;BR /&gt;SUMX(Company_A_valuation, Company_A_valuation[EBITDA] * (1 + [%_EBITDA_slicer]) * (Company_A_valaution [multiple] + [%_multiple_slicer]))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to work out how i can use the projected EV and a chosen date in future to feed into the cashflow table and therefore be included in the IRR calculation. I have tried various custom columns to duplicate the cashflow, but also bring in the projected EV at the selected date, but I cannot get it to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts or suggestions welcome! Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NB to select the date of when the EV is to be taken from, I have been playing around with a DAX similar to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'Cashflow'[Projected_IRR] = &lt;BR /&gt;VAR currentdate = MAX('Calendar'[Date]) &lt;BR /&gt;RETURN

IFERROR(IF(CALCULATE(SUM(CashFlow[end amt]),FILTER('Calendar','Calendar'[Date]=currentdate)) = BLANK(),BLANK(),
		XIRR(	FILTER( 
				SUMMARIZE(
					FILTER(
					ALL('Calendar'),
					Calendar[Date]&amp;lt;=currentdate
					),
				Calendar[Date],
				"TotalCashFlowIRR", IF('Calendar'[Date]=currentdate,SUM(CashFlow[end amt]),BLANK()) + CALCULATE(SUM(CashFlow[flow]))
				),
			[TotalCashflowIRR] &amp;lt;&amp;gt;0
			),
		&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Aug 2022 13:21:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-08-08T13:21:18Z</dc:date>
    <item>
      <title>Calculating IRR using slicer and projected data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-IRR-using-slicer-and-projected-data/m-p/2687471#M80790</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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 various cashflows and one that contains the various fields used to calculate the valuation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;TD&gt;Type&lt;/TD&gt;&lt;TD&gt;Company&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1/1/2022&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;TD&gt;Realisation&lt;/TD&gt;&lt;TD&gt;Company A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/1/2022&lt;/TD&gt;&lt;TD&gt;-2000&lt;/TD&gt;&lt;TD&gt;Investment&lt;/TD&gt;&lt;TD&gt;Company A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3/1/2022&lt;/TD&gt;&lt;TD&gt;3000&lt;/TD&gt;&lt;TD&gt;Fees&lt;/TD&gt;&lt;TD&gt;Company A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4/1/2022&lt;/TD&gt;&lt;TD&gt;10000&lt;/TD&gt;&lt;TD&gt;Enterprise Value (EV)&lt;/TD&gt;&lt;TD&gt;Company A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5/1/2022&lt;/TD&gt;&lt;TD&gt;4000&lt;/TD&gt;&lt;TD&gt;Investment&lt;/TD&gt;&lt;TD&gt;Company B&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Company&lt;/TD&gt;&lt;TD&gt;EBITDA&lt;/TD&gt;&lt;TD&gt;Multiple&lt;/TD&gt;&lt;TD&gt;Enterprise Value (EV)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4/1/2022&lt;/TD&gt;&lt;TD&gt;Company A&lt;/TD&gt;&lt;TD&gt;5000&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;10000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a series of slicers to create different adjustments to the EV calculation, i.e. increase multiple by 5%. This then creates a projection of what the EV will be in the future, based on the various adjustments to the variables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;Projected_EV=&lt;BR /&gt;SUMX(Company_A_valuation, Company_A_valuation[EBITDA] * (1 + [%_EBITDA_slicer]) * (Company_A_valaution [multiple] + [%_multiple_slicer]))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to work out how i can use the projected EV and a chosen date in future to feed into the cashflow table and therefore be included in the IRR calculation. I have tried various custom columns to duplicate the cashflow, but also bring in the projected EV at the selected date, but I cannot get it to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts or suggestions welcome! Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NB to select the date of when the EV is to be taken from, I have been playing around with a DAX similar to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'Cashflow'[Projected_IRR] = &lt;BR /&gt;VAR currentdate = MAX('Calendar'[Date]) &lt;BR /&gt;RETURN

IFERROR(IF(CALCULATE(SUM(CashFlow[end amt]),FILTER('Calendar','Calendar'[Date]=currentdate)) = BLANK(),BLANK(),
		XIRR(	FILTER( 
				SUMMARIZE(
					FILTER(
					ALL('Calendar'),
					Calendar[Date]&amp;lt;=currentdate
					),
				Calendar[Date],
				"TotalCashFlowIRR", IF('Calendar'[Date]=currentdate,SUM(CashFlow[end amt]),BLANK()) + CALCULATE(SUM(CashFlow[flow]))
				),
			[TotalCashflowIRR] &amp;lt;&amp;gt;0
			),
		&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 13:21:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-IRR-using-slicer-and-projected-data/m-p/2687471#M80790</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-08T13:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating IRR using slicer and projected data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-IRR-using-slicer-and-projected-data/m-p/2687640#M80810</link>
      <description>&lt;P&gt;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&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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] )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 08 Aug 2022 14:35:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-IRR-using-slicer-and-projected-data/m-p/2687640#M80810</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-08-08T14:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating IRR using slicer and projected data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-IRR-using-slicer-and-projected-data/m-p/2695636#M81318</link>
      <description>&lt;P&gt;Thanks for the suggestion. The principle of this works well and the table created works with the XIRR function, so I am half way there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, for the additional ROW I am struggling to work out a way for the user to be able to select a particular date in the future (currently trying to use a slicer) and then associate a value with that date, in order to use this projected valuation as part of IRR calculation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried, for example, to use this measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Selected_year = 
        CALCULATE(
        MAX( Calendar[Date] ),
        ALLSELECTED( Calendar[Date] )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to link a slicer to the DAX you suggest, but the _date in the new ROW is unresponsive and just uses the last date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you able to suggest a measure to use for _date and _value for the new ROW that would allow the user to select a time period and the respective value would be used?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 15:06:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-IRR-using-slicer-and-projected-data/m-p/2695636#M81318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-11T15:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating IRR using slicer and projected data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-IRR-using-slicer-and-projected-data/m-p/2695657#M81320</link>
      <description>&lt;P&gt;Create a separate date table which is not connected to anything, just to use for the slicer. That's what I intended the 'Future Dates' table to be in my initial code.&lt;/P&gt;&lt;P&gt;For the value to use, you could use a what if parameter. That automatically creates a measure which returns the selected value, so you can just use that&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 15:16:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-IRR-using-slicer-and-projected-data/m-p/2695657#M81320</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-08-11T15:16:16Z</dc:date>
    </item>
  </channel>
</rss>

