<?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: RANKX works until I add other columns to the table visual in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-works-until-I-add-other-columns-to-the-table-visual/m-p/3664180#M142021</link>
    <description>&lt;P&gt;We want to help you but your description is too vaugue. Please write it again clearly.&lt;/P&gt;&lt;P&gt;Please DON'T copy &amp;amp; paste your DAX that does not work and expect us to fathom what you want to do. That is a bit crazy. &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please just give a simple non technical functional decscription of what you want, then let us suggest the solution. Thank you.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Provide example input data as table text (not a screen print) so we can import the data to build a solution for you.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Remove any unneeded columns which may cause confussion.&lt;/P&gt;&lt;P&gt;Rename columns to user friendly names.&amp;nbsp;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Also provide the example desired output, with a clear step-by-step description of the calculation and process flow.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;Remember not to share private data ... we don't want you to get into trouble. &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt;&lt;BR /&gt;Take time and care to use the same table and field names in the input, output and description so we can understand your problem and help you.&lt;BR /&gt;Try keep it simple and ask one question per ticket.&lt;BR /&gt;You will get a quick response if you put time, care and effort into writing clear problem descriptions.&lt;BR /&gt;Remember you are gerrting free expert help, so please put lots of proper effort to asking questions and providing example.&lt;/P&gt;&lt;P&gt;Vaugue descriptions can waste your time and ourtime.&lt;/P&gt;&lt;P&gt;Look foward to helping you when the above information is forthcoming&lt;/P&gt;</description>
    <pubDate>Sat, 27 Jan 2024 14:57:32 GMT</pubDate>
    <dc:creator>speedramps</dc:creator>
    <dc:date>2024-01-27T14:57:32Z</dc:date>
    <item>
      <title>RANKX works until I add other columns to the table visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-works-until-I-add-other-columns-to-the-table-visual/m-p/3662695#M141933</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New here. I have a pbx file downloaded from sqlbi for rankx.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This contains a sales table and a product table with the following DAX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sales Amount =&lt;/SPAN&gt; &lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;[Quantity]&lt;/SPAN&gt;&lt;SPAN&gt; * &lt;/SPAN&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;[Net Price]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Ranking on Brand =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ISINSCOPE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;'Product'&lt;/SPAN&gt;&lt;SPAN&gt;[Brand]&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;'Product'&lt;/SPAN&gt;&lt;SPAN&gt;[Brand]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;[Sales Amount]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Works perfectly in this scenario:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, as soon as I add any field from the product table it ranks the brand within the category rather than only ranking the brands as above screenshot.&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;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 12:42:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-works-until-I-add-other-columns-to-the-table-visual/m-p/3662695#M141933</guid>
      <dc:creator>ElBucko</dc:creator>
      <dc:date>2024-01-26T12:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX works until I add other columns to the table visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-works-until-I-add-other-columns-to-the-table-visual/m-p/3664180#M142021</link>
      <description>&lt;P&gt;We want to help you but your description is too vaugue. Please write it again clearly.&lt;/P&gt;&lt;P&gt;Please DON'T copy &amp;amp; paste your DAX that does not work and expect us to fathom what you want to do. That is a bit crazy. &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please just give a simple non technical functional decscription of what you want, then let us suggest the solution. Thank you.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Provide example input data as table text (not a screen print) so we can import the data to build a solution for you.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Remove any unneeded columns which may cause confussion.&lt;/P&gt;&lt;P&gt;Rename columns to user friendly names.&amp;nbsp;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Also provide the example desired output, with a clear step-by-step description of the calculation and process flow.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;Remember not to share private data ... we don't want you to get into trouble. &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt;&lt;BR /&gt;Take time and care to use the same table and field names in the input, output and description so we can understand your problem and help you.&lt;BR /&gt;Try keep it simple and ask one question per ticket.&lt;BR /&gt;You will get a quick response if you put time, care and effort into writing clear problem descriptions.&lt;BR /&gt;Remember you are gerrting free expert help, so please put lots of proper effort to asking questions and providing example.&lt;/P&gt;&lt;P&gt;Vaugue descriptions can waste your time and ourtime.&lt;/P&gt;&lt;P&gt;Look foward to helping you when the above information is forthcoming&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2024 14:57:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-works-until-I-add-other-columns-to-the-table-visual/m-p/3664180#M142021</guid>
      <dc:creator>speedramps</dc:creator>
      <dc:date>2024-01-27T14:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX works until I add other columns to the table visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-works-until-I-add-other-columns-to-the-table-visual/m-p/3665649#M142089</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="680935" data-lia-user-login="ElBucko" class="lia-mention lia-mention-user"&gt;ElBucko&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Here is my test data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Create a measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Rank = 
VAR _T = ADDCOLUMNS('Table',"Group",RANKX(ALL('Table'),'Table'[Brand],'Table'[Brand],DESC,Dense))
RETURN
SUMX(_T,[Group])&lt;/LI-CODE&gt;
&lt;P&gt;Final output&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: SegoeUI; font-size: 11.25pt; color: black;"&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: SegoeUI; font-size: 11.25pt; color: black;"&gt;&lt;SPAN&gt;Albert He&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: SegoeUI; font-size: 11.25pt; color: black;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: SegoeUI; font-size: 11.25pt; color: black;"&gt;&lt;SPAN&gt;If this &lt;EM&gt;&lt;STRONG&gt;post&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to help the other members find it more quickly&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 08:04:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-works-until-I-add-other-columns-to-the-table-visual/m-p/3665649#M142089</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-29T08:04:30Z</dc:date>
    </item>
  </channel>
</rss>

