<?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 dax function in column with complicated measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-dax-function-in-column-with-complicated-measure/m-p/2714148#M82574</link>
    <description>&lt;LI-CODE lang="markup"&gt;but I need to use the rank values as the x-axis on a bar chart.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RANKX is an iterator function, it works over rows.&amp;nbsp; &amp;nbsp;Putting it in a measure is always tricky.&amp;nbsp; And then trying to use that measure as another column (your x axis) is where stuff breaks the fabric of spacetime.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/use-of-rankx-in-power-bi-measures/" target="_blank"&gt;Use of RANKX in Power BI measures - SQLBI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to create a disconnected table for your expected values (&amp;nbsp; GENERATESERIES(1,10)&amp;nbsp; &amp;nbsp;etc)&amp;nbsp; and then tie the measure to that table.&amp;nbsp; That will allow you to select the table column for the x axis.&lt;/P&gt;</description>
    <pubDate>Sat, 20 Aug 2022 17:58:21 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2022-08-20T17:58:21Z</dc:date>
    <item>
      <title>Rankx dax function in column with complicated measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-dax-function-in-column-with-complicated-measure/m-p/2712216#M82435</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;am having an issue with using the rankx function in a column in my table. I can calculate the rank with a measure, but I need to use the rank values as the x-axis on a bar chart. So, I guess I need to calculate the rank value in a column in my table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My other issue is that the value "expression" used for rankx is a measure consisting of a bunch of other measures, calculated from different rows in my main table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The measure used is a forecast that that looking at the year-to-date cost from last year compared to the hole last year cost. This percentage value is then used to calculate a forecast of this year cost, using the year-to-date cost for this year. This forecast measure is then compared to the total budget of this year, to see if the different counties are expected to keep their budget.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This forecast vs budget measure is what I want so rank between the different counties.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the measure is complicated, I often get an error saying that there is a circular reference. Or I just get a bunch of 1's.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a report where I have illustrated the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/s!Akk3xPcd4O64gaop19baJ5m1yd6ENA?e=soxb3l" target="_blank" rel="nofollow noopener noreferrer"&gt;https://1drv.ms/u/s!Akk3xPcd4O64gaop19baJ5m1yd6ENA?e=soxb3l&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 09:57:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-dax-function-in-column-with-complicated-measure/m-p/2712216#M82435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-19T09:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rankx dax function in column with complicated measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-dax-function-in-column-with-complicated-measure/m-p/2714148#M82574</link>
      <description>&lt;LI-CODE lang="markup"&gt;but I need to use the rank values as the x-axis on a bar chart.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RANKX is an iterator function, it works over rows.&amp;nbsp; &amp;nbsp;Putting it in a measure is always tricky.&amp;nbsp; And then trying to use that measure as another column (your x axis) is where stuff breaks the fabric of spacetime.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/use-of-rankx-in-power-bi-measures/" target="_blank"&gt;Use of RANKX in Power BI measures - SQLBI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to create a disconnected table for your expected values (&amp;nbsp; GENERATESERIES(1,10)&amp;nbsp; &amp;nbsp;etc)&amp;nbsp; and then tie the measure to that table.&amp;nbsp; That will allow you to select the table column for the x axis.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2022 17:58:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-dax-function-in-column-with-complicated-measure/m-p/2714148#M82574</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-08-20T17:58:21Z</dc:date>
    </item>
  </channel>
</rss>

