<?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 Re: XIRR and Date Table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/XIRR-and-Date-Table/m-p/2351279#M59693</link>
    <description>&lt;P&gt;Thanks for the reply. I have seen your video and thanks for your video in Excel and for the Curbal video. Both those examples just calculate directly on one table. I have not seen how to incorporate the Star Schema / Date Table&lt;/P&gt;</description>
    <pubDate>Mon, 21 Feb 2022 13:51:38 GMT</pubDate>
    <dc:creator>TorsteinZahl</dc:creator>
    <dc:date>2022-02-21T13:51:38Z</dc:date>
    <item>
      <title>XIRR and Date Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/XIRR-and-Date-Table/m-p/2351128#M59682</link>
      <description>&lt;P&gt;I have an issue with Star Modelling my XIRR Formula.. I can't simply get it to work.. I have tried and tried, so decided to ask here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Fact data is:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Relationsship with dates are like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to Calculate the formula XIRR per Quarter and with a Quarter slicer for futher calculations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My fact table dont have "first value" in minus like the XIRR formula needs. So I took a work around with this DAX in order to get PreviousQuarter Lastdate Value in to the table.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is the Correct table for calculating XIRR!! I have an minus value to start and cashflow in pluss and value at end of period.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However my XIRR woould not wtok... I tried this as my "best" failure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If anyone can help me with this XIRR problem I would be so thankfull!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dont hesitate to ask &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;Links to files:&lt;BR /&gt;&lt;A href="https://drive.google.com/drive/folders/1quE7m429GwhcSJEGJi5HdmeWHqeavuu-?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/drive/folders/1quE7m429GwhcSJEGJi5HdmeWHqeavuu-?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 12:42:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/XIRR-and-Date-Table/m-p/2351128#M59682</guid>
      <dc:creator>TorsteinZahl</dc:creator>
      <dc:date>2022-02-21T12:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: XIRR and Date Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/XIRR-and-Date-Table/m-p/2351161#M59686</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="360909" data-lia-user-login="TorsteinZahl" class="lia-mention lia-mention-user"&gt;TorsteinZahl&lt;/a&gt; , I have not tried this, I tried a few other financial functions.&lt;/P&gt;
&lt;P&gt;Please refer to these two videos that can help&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=N1WRSFuaFmE" target="_blank"&gt;https://www.youtube.com/watch?v=N1WRSFuaFmE&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=rHZ4hj5eh10" target="_blank"&gt;https://www.youtube.com/watch?v=rHZ4hj5eh10&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 13:00:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/XIRR-and-Date-Table/m-p/2351161#M59686</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-21T13:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: XIRR and Date Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/XIRR-and-Date-Table/m-p/2351279#M59693</link>
      <description>&lt;P&gt;Thanks for the reply. I have seen your video and thanks for your video in Excel and for the Curbal video. Both those examples just calculate directly on one table. I have not seen how to incorporate the Star Schema / Date Table&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 13:51:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/XIRR-and-Date-Table/m-p/2351279#M59693</guid>
      <dc:creator>TorsteinZahl</dc:creator>
      <dc:date>2022-02-21T13:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: XIRR and Date Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/XIRR-and-Date-Table/m-p/2358266#M60149</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="360909" data-lia-user-login="TorsteinZahl" class="lia-mention lia-mention-user"&gt;TorsteinZahl&lt;/a&gt;&amp;nbsp;;&lt;/P&gt;
&lt;P&gt;You could delete the relationship or&amp;nbsp; create a new table without relationship.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;then create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Previous Quarter Value in Minus 2 = 
IF (
    QUARTER ( MAX ( [date] ) ) = QUARTER ( MAX ( 'dim_date'[Date] ) )
        &amp;amp;&amp;amp; YEAR ( MAX ( [date] ) ) = YEAR ( MAX ( 'dim_date'[Date] ) ),
    SUM ( [sum] ),
    CALCULATE ( - SUM ( [sum] ), LASTDATE ( PREVIOUSQUARTER ( dim_date[Date] ) ) ))
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;XIRR = XIRR(ALL('Table'),[Previous Quarter Value in Minus 2],[date])&lt;/LI-CODE&gt;
&lt;P&gt;The final output is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team_ Yalan Wu&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 09:18:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/XIRR-and-Date-Table/m-p/2358266#M60149</guid>
      <dc:creator>v-yalanwu-msft</dc:creator>
      <dc:date>2022-02-24T09:18:27Z</dc:date>
    </item>
  </channel>
</rss>

