<?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 Get First Value on Matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-First-Value-on-Matrix/m-p/3840883#M150158</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currenty working on issue to get only first value on Marix within Month, I used Firstnonblankvalue but I get the result without month, as you can see below I want to get only the yellow values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Best regrads&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Apr 2024 09:55:44 GMT</pubDate>
    <dc:creator>Dizzy</dc:creator>
    <dc:date>2024-04-16T09:55:44Z</dc:date>
    <item>
      <title>Get First Value on Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-First-Value-on-Matrix/m-p/3840883#M150158</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currenty working on issue to get only first value on Marix within Month, I used Firstnonblankvalue but I get the result without month, as you can see below I want to get only the yellow values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Best regrads&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 09:55:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-First-Value-on-Matrix/m-p/3840883#M150158</guid>
      <dc:creator>Dizzy</dc:creator>
      <dc:date>2024-04-16T09:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get First Value on Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-First-Value-on-Matrix/m-p/3841735#M150184</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="302665" data-lia-user-login="Dizzy" class="lia-mention lia-mention-user"&gt;Dizzy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please elaborate on your expected result perhaps on top of the example that you've provided.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 13:42:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-First-Value-on-Matrix/m-p/3841735#M150184</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-04-16T13:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get First Value on Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-First-Value-on-Matrix/m-p/3843981#M150265</link>
      <description>&lt;P&gt;Thanks for the reply from &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;, please allow me to provide another insight:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="302665" data-lia-user-login="Dizzy" class="lia-mention lia-mention-user"&gt;Dizzy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
var _date=
MINX(
    FILTER(ALL('Table'),
    'Table'[Account Number Name CRM]=MAX('Table'[Account Number Name CRM])&amp;amp;&amp;amp;
    'Table'[Month_Year]=MAX('Table'[Month_Year])&amp;amp;&amp;amp;
    'Table'[Value]&amp;lt;&amp;gt;BLANK()),[Date])
return
SUMX(
    FILTER(ALL('Table'),
    'Table'[Account Number Name CRM]=MAX('Table'[Account Number Name CRM])&amp;amp;&amp;amp;
    'Table'[Month_Year]=MAX('Table'[Month_Year])&amp;amp;&amp;amp;
    'Table'[Date]=_date),[Value])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 06:35:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-First-Value-on-Matrix/m-p/3843981#M150265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-17T06:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get First Value on Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-First-Value-on-Matrix/m-p/3868133#M151115</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;This is not why I'm locking for.&lt;/P&gt;&lt;P&gt;In your example, it schould be only Feb 2024 for A and C Only Jan.&lt;/P&gt;&lt;P&gt;Ony first value sorted by Month.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 11:18:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-First-Value-on-Matrix/m-p/3868133#M151115</guid>
      <dc:creator>Dizzy</dc:creator>
      <dc:date>2024-04-25T11:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get First Value on Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-First-Value-on-Matrix/m-p/3868340#M151119</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="302665" data-lia-user-login="Dizzy" class="lia-mention lia-mention-user"&gt;Dizzy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Following the sample file created by&amp;nbsp;Anonymous&lt;/a&gt;, please try the following&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Measure = 
SUMX ( 
    SUMMARIZE ( 'Table', 'Table'[Account Number Name CRM], 'Table'[Month_Year] ),
    VAR CurrentMonth =
        'Table'[Month_Year]
    VAR CurrentAccountTable = 
        FILTER ( 
            CALCULATETABLE ( 
                'Table',
                ALLEXCEPT ( 'Table', 'Table'[Account Number Name CRM] )
            ), 
            'Table'[Value] &amp;lt;&amp;gt; BLANK ( ) 
        )
    VAR FirstRecord = 
        TOPN ( 1, CurrentAccountTable, 'Table'[Date], ASC )
    VAR FirstMonth = 
        MAXX ( FirstRecord, 'Table'[Month_Year]  )
    VAR FirstValue = 
        MAXX ( FirstRecord, 'Table'[Value] )
    RETURN 
        IF ( CurrentMonth = FirstMonth, FirstValue )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 12:37:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-First-Value-on-Matrix/m-p/3868340#M151119</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-04-25T12:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get First Value on Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-First-Value-on-Matrix/m-p/3868363#M151121</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the value what I expected are in yellow in sorted by Fiscal Month.&lt;/P&gt;&lt;P&gt;The Last Row in my example is returned two values one in august and other one in january, I want to have at the end only august.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 12:39:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-First-Value-on-Matrix/m-p/3868363#M151121</guid>
      <dc:creator>Dizzy</dc:creator>
      <dc:date>2024-04-25T12:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Get First Value on Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-First-Value-on-Matrix/m-p/3868720#M151134</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="302665" data-lia-user-login="Dizzy" class="lia-mention lia-mention-user"&gt;Dizzy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Not sure if you have seen my reply below.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 14:55:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-First-Value-on-Matrix/m-p/3868720#M151134</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-04-25T14:55:06Z</dc:date>
    </item>
  </channel>
</rss>

