<?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: How to replicate an excel formula in Power BI that self refers the column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-an-excel-formula-in-Power-BI-that-self-refers/m-p/2814587#M89212</link>
    <description>&lt;P&gt;Read your post, now I am aware of this limitation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to achieve the same resulta that I get in excel. If I receive 1 Tip in a sequence of days, it gets accumulated up to 7, and then returns to 1 if a receive 1 Tip that day or 0 if I dont receive 1 Tip. If I have a break in the sequence of receiving Tips (a day with 0) then it returns to 0. Not sure, if I was clear.&lt;/P&gt;&lt;P&gt;Thanks for replying!&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 16:34:56 GMT</pubDate>
    <dc:creator>Gui_silva</dc:creator>
    <dc:date>2022-10-03T16:34:56Z</dc:date>
    <item>
      <title>How to replicate an excel formula in Power BI that self refers the column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-an-excel-formula-in-Power-BI-that-self-refers/m-p/2814551#M89205</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have written this formula in excel that is self referred, however in power BI I can't self refer the measure or column that I try to create. The formula is:&amp;nbsp;=IFERROR(IF(B2=0;0;IF(B2+C1&amp;gt;7;1;B2+C1));B2)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know a solution for this?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Gui &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 16:19:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-an-excel-formula-in-Power-BI-that-self-refers/m-p/2814551#M89205</guid>
      <dc:creator>Gui_silva</dc:creator>
      <dc:date>2022-10-03T16:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate an excel formula in Power BI that self refers the column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-an-excel-formula-in-Power-BI-that-self-refers/m-p/2814567#M89209</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="450847" data-lia-user-login="Gui_silva" class="lia-mention lia-mention-user"&gt;Gui_silva&lt;/a&gt;&amp;nbsp;More than likely not going to happen.&amp;nbsp;&lt;A href="https://gregdeckler.com/2019/03/06/previous-value-recursion-in-dax/" target="_blank"&gt;Previous Value (“Recursion”) in DAX – Greg Deckler&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are you trying to achieve?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 16:23:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-an-excel-formula-in-Power-BI-that-self-refers/m-p/2814567#M89209</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-10-03T16:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate an excel formula in Power BI that self refers the column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-an-excel-formula-in-Power-BI-that-self-refers/m-p/2814587#M89212</link>
      <description>&lt;P&gt;Read your post, now I am aware of this limitation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to achieve the same resulta that I get in excel. If I receive 1 Tip in a sequence of days, it gets accumulated up to 7, and then returns to 1 if a receive 1 Tip that day or 0 if I dont receive 1 Tip. If I have a break in the sequence of receiving Tips (a day with 0) then it returns to 0. Not sure, if I was clear.&lt;/P&gt;&lt;P&gt;Thanks for replying!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 16:34:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-an-excel-formula-in-Power-BI-that-self-refers/m-p/2814587#M89212</guid>
      <dc:creator>Gui_silva</dc:creator>
      <dc:date>2022-10-03T16:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate an excel formula in Power BI that self refers the column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-an-excel-formula-in-Power-BI-that-self-refers/m-p/2814594#M89213</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="450847" data-lia-user-login="Gui_silva" class="lia-mention lia-mention-user"&gt;Gui_silva&lt;/a&gt;&amp;nbsp;There may be hope then:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Cthulhu/m-p/509739#M211" target="_blank"&gt;Cthulhu - Microsoft Power BI Community&lt;/A&gt;. If you post sample data as text, I can be more specific.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 16:39:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-an-excel-formula-in-Power-BI-that-self-refers/m-p/2814594#M89213</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-10-03T16:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate an excel formula in Power BI that self refers the column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-an-excel-formula-in-Power-BI-that-self-refers/m-p/2814687#M89224</link>
      <description>&lt;P&gt;Here's a sample:&lt;/P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t;/TR&gt;&lt;TR&gt;&lt;TD&gt;27/06/2022&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;29/06/2022&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 03 Oct 2022 17:28:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-an-excel-formula-in-Power-BI-that-self-refers/m-p/2814687#M89224</guid>
      <dc:creator>Gui_silva</dc:creator>
      <dc:date>2022-10-03T17:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate an excel formula in Power BI that self refers the column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-an-excel-formula-in-Power-BI-that-self-refers/m-p/2814735#M89229</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="450847" data-lia-user-login="Gui_silva" class="lia-mention lia-mention-user"&gt;Gui_silva&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to attached sample file with the solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Accumulated Tips = 
VAR FirstData = MIN ( 'Table'[DATA] )
VAR CurrentData = 'Table'[DATA]
VAR TableBefore = FILTER ( 'Table', 'Table'[DATA] &amp;lt;= CurrentData )
VAR FilteredTable1 = FILTER ( TableBefore, 'Table'[TIP] = 0 )
VAR MinData = MAXX ( FilteredTable1, 'Table'[DATA] )
VAR FilteredTable2 = FILTER ( TableBefore, 'Table'[DATA] &amp;gt; MinData &amp;amp;&amp;amp; 'Table'[DATA] &amp;gt; FirstData )
VAR AccumulatedValue = SUMX ( FilteredTable2, 'Table'[TIP] )
VAR Result1 = MOD ( AccumulatedValue, 7 )
VAR Result2 = IF ( Result1 &amp;gt; 0, Result1, IF ( ISBLANK ( Result1 ), 0, 7 ) )
RETURN
    IF ( FirstData = CurrentData, 'Table'[TIP], Result2 )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 Oct 2022 18:07:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-an-excel-formula-in-Power-BI-that-self-refers/m-p/2814735#M89229</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-03T18:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate an excel formula in Power BI that self refers the column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-an-excel-formula-in-Power-BI-that-self-refers/m-p/2814769#M89230</link>
      <description>&lt;P&gt;Thank you so much tamerj1.&lt;/P&gt;&lt;P&gt;I hope to get at this level at some point haha!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 18:25:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replicate-an-excel-formula-in-Power-BI-that-self-refers/m-p/2814769#M89230</guid>
      <dc:creator>Gui_silva</dc:creator>
      <dc:date>2022-10-03T18:25:11Z</dc:date>
    </item>
  </channel>
</rss>

