<?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: one top row data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2474126#M67494</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="381748" data-lia-user-login="ForzaMami" class="lia-mention lia-mention-user"&gt;ForzaMami&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please right the expected results with explanation in this same screenshot?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2022 07:31:22 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-04-25T07:31:22Z</dc:date>
    <item>
      <title>one top row data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2470996#M67276</link>
      <description>&lt;P&gt;&lt;SPAN&gt;It's a little hard to explain, I need to use the same formula in a single dax formula, the one in the top row. I'm trying to power the "Exponential Smoothing" column in the excel below. Is something like this possible ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 08:54:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2470996#M67276</guid>
      <dc:creator>ForzaMami</dc:creator>
      <dc:date>2022-04-22T08:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: one top row data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2471642#M67315</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="381748" data-lia-user-login="ForzaMami" class="lia-mention lia-mention-user"&gt;ForzaMami&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you may try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Exponential Smoothing =
VAR CurrentYearMonth =
    MAX ( Table[Year_Month] )
VAR PreviousStatus1 =
    CALCULATE ( [Status], Table[Year_Month] = CurrentYearMonth - 100 )
VAR PreviousStatus2 =
    CALCULATE ( [Status], Table[Year_Month] = CurrentYearMonth - 200 )
RETURN
    IF (
        NOT ISBLANK ( PreviousStatus1 ) &amp;amp;&amp;amp; NOT ISBLANK ( PreviousStatus2 ),
        IF (
            ISBLANK ( PreviousStatus1 ),
            PreviousStatus2,
            0.5 * PreviousStatus1 + 0.5 * PreviousStatus2
        )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 13:28:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2471642#M67315</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-22T13:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: one top row data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2473919#M67486</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dont work.&amp;nbsp;If you want to get the 1st and 2nd months retrospectively, it doesn't work either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 06:12:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2473919#M67486</guid>
      <dc:creator>ForzaMami</dc:creator>
      <dc:date>2022-04-25T06:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: one top row data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2474126#M67494</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="381748" data-lia-user-login="ForzaMami" class="lia-mention lia-mention-user"&gt;ForzaMami&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please right the expected results with explanation in this same screenshot?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 07:31:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2474126#M67494</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-25T07:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: one top row data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2474825#M67532</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Exponential_1 =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Input2Values]&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;[Measure Last Period]&lt;/SPAN&gt;&lt;SPAN&gt;) + (&lt;/SPAN&gt;&lt;SPAN&gt;[Input2Values]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;*&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT face="arial black,avant garde"&gt;[Measure Last Period](Wrong)&lt;/FONT&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;20200301 = (0,5*633.973) + ( 0,5*4.076.361 ) =&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;2.355.167 must&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;20200401 =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;(0,5*766.859) + ( 0,5*&lt;STRONG&gt;2.355.167&lt;/STRONG&gt;&amp;nbsp;)=&amp;nbsp;&lt;STRONG&gt;1.561.013 must&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Apr 2022 11:39:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2474825#M67532</guid>
      <dc:creator>ForzaMami</dc:creator>
      <dc:date>2022-04-25T11:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: one top row data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2476607#M67638</link>
      <description>&lt;P&gt;did i want something so hard &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 05:49:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2476607#M67638</guid>
      <dc:creator>ForzaMami</dc:creator>
      <dc:date>2022-04-26T05:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: one top row data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2476654#M67641</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="381748" data-lia-user-login="ForzaMami" class="lia-mention lia-mention-user"&gt;ForzaMami&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can create a &lt;STRONG&gt;measure&lt;/STRONG&gt; as below to get it:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Exponential_1 =
VAR _curym =
    SELECTEDVALUE ( 'Table'[Year_Month] )
VAR _selalpha =
    SELECTEDVALUE ( 'Table'[Alpha] )
RETURN
    _selalpha
        * SUMX (
            FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Year_Month] &amp;lt;= _curym ),
            [Measure Last Period]
        )&lt;/LI-CODE&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide some &lt;STRONG&gt;sample data&lt;/STRONG&gt; in your tables (&lt;EM&gt;&lt;STRONG&gt;exclude &lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;sensitive &lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/EM&gt;) with &lt;STRONG&gt;Text&lt;/STRONG&gt; format and your &lt;STRONG&gt;expected result&lt;/STRONG&gt; with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDesktop%2FHow-to-upload-PBI-in-Community%2Fm-p%2F1672886&amp;amp;data=04%7C01%7Cv-yiruan%40microsoft.com%7C4f580813734d4a8355b008da16f6e91a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637847547341062885%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=YJvujige2YITXKbKED9JieQm5LBdf%2F3IYPM4ggdiijQ%3D&amp;amp;reserved=0" target="_blank"&gt;How to upload PBI in Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 06:05:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2476654#M67641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-26T06:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: one top row data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2476699#M67643</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="381748" data-lia-user-login="ForzaMami" class="lia-mention lia-mention-user"&gt;ForzaMami&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;My dear, I think the thing you somehow missed is that DAX does not support recursive calculations. Meaning that you cannot by any means refer to the previous raw of the same column under evaluation. In some cases, the same results can be obtained using different approach.&amp;nbsp;&lt;BR /&gt;In this community there are people&amp;nbsp;who are willing to spend time and effort to help others sometimes having no idea about their data expecting some cooperation to clarify it out and help them find a solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question to you is there any way we can calculate&amp;nbsp;the values depending only on the Status column? Can you transform your equation to a one where all variables belong to the status column only? (no matter how complex this equation would be)&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 06:25:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2476699#M67643</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-26T06:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: one top row data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2477022#M67660</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I tried to make an example. I just want Exponential Smoothing column&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PBX&lt;BR /&gt;&lt;A href="https://easyupload.io/gouz99" target="_blank"&gt;https://easyupload.io/gouz99&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Data and Sample&lt;BR /&gt;&lt;A href="https://easyupload.io/u81aea" target="_blank"&gt;https://easyupload.io/u81aea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 08:12:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2477022#M67660</guid>
      <dc:creator>ForzaMami</dc:creator>
      <dc:date>2022-04-26T08:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: one top row data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2479564#M67818</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="381748" data-lia-user-login="ForzaMami" class="lia-mention lia-mention-user"&gt;ForzaMami&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;According to the information inside the latest reply you gave, the result of the current item is calculated based on the result after the previous item is calculated. And as &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;said, it involves &lt;SPAN&gt;recursive calculation&lt;/SPAN&gt;, I'm afraid it's difficult to achieve what you need with DAX...&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 06:50:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2479564#M67818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-27T06:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: one top row data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2515887#M69979</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="381748" data-lia-user-login="ForzaMami" class="lia-mention lia-mention-user"&gt;ForzaMami&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;It is complicated but actually there might be a solution. Following is a silution based on a calculated column. Not sure if this is what you are looking for.&amp;nbsp;&lt;A href="https://we.tl/t-k7c9RgpgGw" target="_blank"&gt;https://we.tl/t-k7c9RgpgGw&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Exponential = 
VAR a = 0.5
VAR CurrentDate = Sales[Year_Month]
VAR FirstDateEver = CALCULATE ( MIN ( Sales[Year_Month] ), REMOVEFILTERS ( ) )
VAR FirstAmount = MINX ( FILTER ( Sales, Sales[Year_Month] = FirstDateEver ), Sales[Sales] )
VAR T1 = FILTER ( Sales, Sales[Year_Month] &amp;lt; CurrentDate )
VAR PowerNum1 = COUNTROWS ( T1 ) - 1
VAR Value1 = IF ( PowerNum1 &amp;gt;= 0, FirstAmount * POWER ( a, PowerNum1 ) )
VAR Value2 =
    SUMX (
        T1,
        VAR PowerNum2 = COUNTROWS ( FILTER ( T1, Sales[Year_Month] &amp;gt;= EARLIER ( Sales[Year_Month] ) ) ) - 1
        VAR Amount = MAXX ( FILTER ( T1, Sales[Year_Month] = EARLIER ( Sales[Year_Month], 1 ) + 100 ), Sales[Sales] )
        RETURN
            POWER ( a, PowerNum2 ) * Amount
    )
RETURN
    Value1 + Value2&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 May 2022 18:27:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2515887#M69979</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-15T18:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: one top row data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2517220#M70041</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="381748" data-lia-user-login="ForzaMami" class="lia-mention lia-mention-user"&gt;ForzaMami&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Would you please upload the files as the link is already expired. Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 10:03:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/one-top-row-data/m-p/2517220#M70041</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-16T10:03:31Z</dc:date>
    </item>
  </channel>
</rss>

