<?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 RANKX does not give correct result when used in SUMMARIZECOLUMNS and SUMMARIZE in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-does-not-give-correct-result-when-used-in-SUMMARIZECOLUMNS/m-p/444851#M156532</link>
    <description>&lt;P&gt;In this DAX query, the returned values for Rank by Sales column look strange. If the filter context from Sales table is commented, the result is correct. The same issue was found with SUMMARIZE too. As the moment, I can work around by nesting the column name and columns expression in ADDCOLUMNS expression, but I wanted to understand what's going wrong internally with SUMMARIZE or SUMMARIZECOLUMNS in this case? Could anyone help? Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;EVALUATE
SUMMARIZECOLUMNS (
    'Product'[Brand],
    Sales,
    "Total Sales", [Total Sales],
    "Rank by Sales", RANKX ( ALL ( 'Product'[Brand] ), [Total Sales] )
)&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2018 07:11:55 GMT</pubDate>
    <dc:creator>marcussyliu</dc:creator>
    <dc:date>2018-06-21T07:11:55Z</dc:date>
    <item>
      <title>RANKX does not give correct result when used in SUMMARIZECOLUMNS and SUMMARIZE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-does-not-give-correct-result-when-used-in-SUMMARIZECOLUMNS/m-p/444851#M156532</link>
      <description>&lt;P&gt;In this DAX query, the returned values for Rank by Sales column look strange. If the filter context from Sales table is commented, the result is correct. The same issue was found with SUMMARIZE too. As the moment, I can work around by nesting the column name and columns expression in ADDCOLUMNS expression, but I wanted to understand what's going wrong internally with SUMMARIZE or SUMMARIZECOLUMNS in this case? Could anyone help? Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;EVALUATE
SUMMARIZECOLUMNS (
    'Product'[Brand],
    Sales,
    "Total Sales", [Total Sales],
    "Rank by Sales", RANKX ( ALL ( 'Product'[Brand] ), [Total Sales] )
)&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 07:11:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-does-not-give-correct-result-when-used-in-SUMMARIZECOLUMNS/m-p/444851#M156532</guid>
      <dc:creator>marcussyliu</dc:creator>
      <dc:date>2018-06-21T07:11:55Z</dc:date>
    </item>
  </channel>
</rss>

