<?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: Pull the value from returned row in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3694410#M143643</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Feb 2024 15:41:29 GMT</pubDate>
    <dc:creator>stribor45</dc:creator>
    <dc:date>2024-02-12T15:41:29Z</dc:date>
    <item>
      <title>Pull the value from returned row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3693169#M143571</link>
      <description>&lt;P&gt;Since my table returned is not base table and it is produced using this code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR Y  = ADDCOLUMNS ( X, "@RANK", RANKX ( X, [@COUNT],,, DENSE ) )
VAR Z =  FILTER (Y, [@RANK] = 1)&lt;/LI-CODE&gt;&lt;P&gt;Z table looks like this&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Country&lt;/TD&gt;&lt;TD&gt;Anonymous&lt;/LI-USER&gt;&lt;/TD&gt;&lt;TD&gt;@RANK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Australia&lt;/TD&gt;&lt;TD&gt;2677&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get the value "Australia"?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 02:35:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3693169#M143571</guid>
      <dc:creator>stribor45</dc:creator>
      <dc:date>2024-02-12T02:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pull the value from returned row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3693536#M143588</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534556" data-lia-user-login="stribor45" class="lia-mention lia-mention-user"&gt;stribor45&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR Z = FIRSTNONBLANK(SELECTCOLUMNS(FILTER (Y, [@RANK] = 1),"Country",Y[Country])),[Country])&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 12 Feb 2024 07:45:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3693536#M143588</guid>
      <dc:creator>govindarajan_d</dc:creator>
      <dc:date>2024-02-12T07:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Pull the value from returned row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3694188#M143636</link>
      <description>&lt;P&gt;that didnt work for me. The syntax for '.' is incorrect&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 13:57:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3694188#M143636</guid>
      <dc:creator>stribor45</dc:creator>
      <dc:date>2024-02-12T13:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pull the value from returned row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3694386#M143640</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534556" data-lia-user-login="stribor45" class="lia-mention lia-mention-user"&gt;stribor45&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share a screenshot, after removing any sensitive data?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 15:32:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3694386#M143640</guid>
      <dc:creator>govindarajan_d</dc:creator>
      <dc:date>2024-02-12T15:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Pull the value from returned row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3694410#M143643</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 15:41:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3694410#M143643</guid>
      <dc:creator>stribor45</dc:creator>
      <dc:date>2024-02-12T15:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pull the value from returned row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3694461#M143646</link>
      <description>&lt;P&gt;This code works for me in DAX Studio but when I move it over to my report data doesnt change when I move slicer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DEFINE

VAR SummaryTable =
    SUMMARIZE(
        FILTER('AGENTS TABLE', 'AGENTS TABLE'[Country] &amp;lt;&amp;gt; "Canada"),
        'AGENTS TABLE'[Country],
        "TotalCount", COUNT('AGENTS TABLE'[Call ID])
    )

VAR RankedTable =
    ADDCOLUMNS(
        SummaryTable,
        "Rank",
        RANKX(SummaryTable, [TotalCount], , DESC)
    )

EVALUATE 
    RankedTable&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 12 Feb 2024 16:07:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3694461#M143646</guid>
      <dc:creator>stribor45</dc:creator>
      <dc:date>2024-02-12T16:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pull the value from returned row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3694726#M143663</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534556" data-lia-user-login="stribor45" class="lia-mention lia-mention-user"&gt;stribor45&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula I gave can be used for a measure, but in terms of EVALUATE it expects a table as a input.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you try the same inside a measure, preferably in Power BI desktop?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 19:46:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3694726#M143663</guid>
      <dc:creator>govindarajan_d</dc:creator>
      <dc:date>2024-02-12T19:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Pull the value from returned row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3694740#M143667</link>
      <description>&lt;P&gt;Yes thats why I typed "Evaluate X" instead of Z. I had same error in PBI measure as well&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 20:03:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3694740#M143667</guid>
      <dc:creator>stribor45</dc:creator>
      <dc:date>2024-02-12T20:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pull the value from returned row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3698205#M143834</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534556" data-lia-user-login="stribor45" class="lia-mention lia-mention-user"&gt;stribor45&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry about that. I had made a typo, where I had put two brackets instead of one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FIRSTNONBLANK(SELECTCOLUMNS(FILTER (Y, [@RANK] = 1),"Country",Y[Country]),[Country])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 07:35:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pull-the-value-from-returned-row/m-p/3698205#M143834</guid>
      <dc:creator>govindarajan_d</dc:creator>
      <dc:date>2024-02-14T07:35:46Z</dc:date>
    </item>
  </channel>
</rss>

