<?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: DAX Table need to relate to other table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Table-need-to-relate-to-other-table/m-p/2760494#M85536</link>
    <description>&lt;P&gt;Revisiting this, I would be remiss if I didn't mention the even more straightforward way to do this by setting a top N filter straight through the UI.&lt;/P&gt;
&lt;P&gt;1. Select your visual and open Filters pane&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Expand filter options of your axis in the filter pane and select the Top N option&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Select Top N option, add in the measure you want to rank by, and the desired N&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Same output as what I provided above. Probably the better solution for its simplicity unless you need the dynamic N functionality I mentioned at the end of my post:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Again, going this route may circumvent your issues because you aren't creating a dynamic table just for the Top N functionality, so you can leverage the measures and relationships you've already set up.&lt;/P&gt;</description>
    <pubDate>Sun, 11 Sep 2022 19:45:34 GMT</pubDate>
    <dc:creator>MarkLaf</dc:creator>
    <dc:date>2022-09-11T19:45:34Z</dc:date>
    <item>
      <title>DAX Table need to relate to other table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Table-need-to-relate-to-other-table/m-p/2759099#M85455</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have this situation , i have created a TOP N table in this way&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;top 5 jugadores = &lt;/SPAN&gt;&lt;SPAN&gt;TOPN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;WorldCupPlayers&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;WorldCupPlayers&lt;/SPAN&gt;&lt;SPAN&gt;[NombreJugador]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;WorldCupPlayers&lt;/SPAN&gt;&lt;SPAN&gt;[Iniciales ]&lt;/SPAN&gt;&lt;SPAN&gt; , &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Goles y Penales"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;dax_medidas&lt;/SPAN&gt;&lt;SPAN&gt;[dax_total_goles mas penales]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;[Goles y Penales]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;the result is something like this&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;the problem is that i Have a tooltip related to NombreJugador that I need to show, so the question is&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;there is a way to RELATE dinamicaly the new "top 5 jugadores"&amp;nbsp; table with the table&amp;nbsp; &lt;SPAN&gt;WorldCupPlayers in order to have this tooltip correct ?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Now is not working&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this is the page for the tooltip,&amp;nbsp; refer to tables of the model, the problem is that the new Dax table is not related with any table of the model.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Sep 2022 20:51:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Table-need-to-relate-to-other-table/m-p/2759099#M85455</guid>
      <dc:creator>VAIDES</dc:creator>
      <dc:date>2022-09-09T20:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Table need to relate to other table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Table-need-to-relate-to-other-table/m-p/2759149#M85457</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to use Related Function your table has to be related with another.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And has to be a relationship 1 to n or 1 to 1.&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 22:30:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Table-need-to-relate-to-other-table/m-p/2759149#M85457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-09T22:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Table need to relate to other table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Table-need-to-relate-to-other-table/m-p/2759157#M85458</link>
      <description>&lt;P&gt;You may want to avoid the issue entirely by using RANKX to filter your measure rather than construct a dynamic table. You can then use whatever already existing fields/measures related to&amp;nbsp;WorldCupPlayers. This is just a guess given it's not clear exactly what you model looks like, but you can try something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;top 5 jugadores_m = 
VAR _all_m = 
    GENERATE( 
        ALL( WorldCupPlayers[NombreJugador] ), 
        ROW( "m", [dax_total_goles mas penales] ) 
    )
VAR _this_m = [dax_total_goles mas penales]
VAR _m_rank = RANKX( _all_m, [m], _this_m )
VAR _rank_cut = 5
VAR output = 
    CALCULATE( 
        [dax_total_goles mas penales], 
        FILTER( WorldCupPlayers, _m_rank &amp;lt;= _rank_cut ) 
    )
RETURN
output&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have something like the above working, you could then take it a step further and use a numeric range parameter instead of hard-entering 5, so the user can pick top X from a slicer. E.g. example output with dummy data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&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>Fri, 09 Sep 2022 22:44:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Table-need-to-relate-to-other-table/m-p/2759157#M85458</guid>
      <dc:creator>MarkLaf</dc:creator>
      <dc:date>2022-09-09T22:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Table need to relate to other table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Table-need-to-relate-to-other-table/m-p/2759551#M85493</link>
      <description>&lt;P&gt;thanks a lot i will try this solution!&lt;/P&gt;</description>
      <pubDate>Sat, 10 Sep 2022 12:24:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Table-need-to-relate-to-other-table/m-p/2759551#M85493</guid>
      <dc:creator>VAIDES</dc:creator>
      <dc:date>2022-09-10T12:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Table need to relate to other table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Table-need-to-relate-to-other-table/m-p/2760494#M85536</link>
      <description>&lt;P&gt;Revisiting this, I would be remiss if I didn't mention the even more straightforward way to do this by setting a top N filter straight through the UI.&lt;/P&gt;
&lt;P&gt;1. Select your visual and open Filters pane&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Expand filter options of your axis in the filter pane and select the Top N option&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Select Top N option, add in the measure you want to rank by, and the desired N&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Same output as what I provided above. Probably the better solution for its simplicity unless you need the dynamic N functionality I mentioned at the end of my post:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Again, going this route may circumvent your issues because you aren't creating a dynamic table just for the Top N functionality, so you can leverage the measures and relationships you've already set up.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2022 19:45:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Table-need-to-relate-to-other-table/m-p/2760494#M85536</guid>
      <dc:creator>MarkLaf</dc:creator>
      <dc:date>2022-09-11T19:45:34Z</dc:date>
    </item>
  </channel>
</rss>

