<?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: Disconnected table alter the filter context in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-table-alter-the-filter-context/m-p/4061904#M161233</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="392722" data-lia-user-login="ppraca" class="lia-mention lia-mention-user"&gt;ppraca&lt;/a&gt; As I can understand that, you want to sum the top N value as chosen by the user from the disconnected table. If this is the case, you have to integrate selected value of TopN to your sum measure. Create sum measure to solve the problem :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SumConsumo =&lt;BR /&gt;VAR TopN_Value = SelectedValue(TopN[TopN_Value])&lt;BR /&gt;&lt;BR /&gt;VAR _Result = Sumx(TOPN(TopN_Value, YourTable, [Value]), [Value])&lt;BR /&gt;&lt;BR /&gt;Return&lt;BR /&gt;_Result&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;This measure will first select top N value as chosen by the user from the disconnected table, and then sum up the corresponding values. Please adjust the table and column names accordingly.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps!!&lt;BR /&gt;&lt;BR /&gt;If this solved your problem, please mark it as a solution!!&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2024 16:12:42 GMT</pubDate>
    <dc:creator>shafiz_p</dc:creator>
    <dc:date>2024-07-25T16:12:42Z</dc:date>
    <item>
      <title>Disconnected table alter the filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-table-alter-the-filter-context/m-p/4061097#M161200</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working in an Excel Pivot table, and I have a disconnect table: TopN value.&lt;/P&gt;&lt;P&gt;My model:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In the disconnected table I have the following measure: TopN_Value=&amp;nbsp;=SELECTEDVALUE('topN'[TopN value])&lt;/P&gt;&lt;P&gt;In the following filter context everything is ok:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I drag the&amp;nbsp;TopN_Value measure to the table, it ignore the filter context, and list all the row values for "TARIFA". I think this not happen in Power Bi.&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paulo Praça&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 09:50:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-table-alter-the-filter-context/m-p/4061097#M161200</guid>
      <dc:creator>ppraca</dc:creator>
      <dc:date>2024-07-25T09:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnected table alter the filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-table-alter-the-filter-context/m-p/4061135#M161203</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="392722" data-lia-user-login="ppraca" class="lia-mention lia-mention-user"&gt;ppraca&lt;/a&gt;&amp;nbsp;,You might need to use the CALCULATE function to modify the filter context explicitly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;TopN_Value &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'topN'&lt;/SPAN&gt;&lt;SPAN&gt;[TopN value]))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Jul 2024 10:07:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-table-alter-the-filter-context/m-p/4061135#M161203</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-07-25T10:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnected table alter the filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-table-alter-the-filter-context/m-p/4061158#M161206</link>
      <description>&lt;P&gt;Thanks for your answer, but doesn't work.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 10:14:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-table-alter-the-filter-context/m-p/4061158#M161206</guid>
      <dc:creator>ppraca</dc:creator>
      <dc:date>2024-07-25T10:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnected table alter the filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-table-alter-the-filter-context/m-p/4061904#M161233</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="392722" data-lia-user-login="ppraca" class="lia-mention lia-mention-user"&gt;ppraca&lt;/a&gt; As I can understand that, you want to sum the top N value as chosen by the user from the disconnected table. If this is the case, you have to integrate selected value of TopN to your sum measure. Create sum measure to solve the problem :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SumConsumo =&lt;BR /&gt;VAR TopN_Value = SelectedValue(TopN[TopN_Value])&lt;BR /&gt;&lt;BR /&gt;VAR _Result = Sumx(TOPN(TopN_Value, YourTable, [Value]), [Value])&lt;BR /&gt;&lt;BR /&gt;Return&lt;BR /&gt;_Result&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;This measure will first select top N value as chosen by the user from the disconnected table, and then sum up the corresponding values. Please adjust the table and column names accordingly.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps!!&lt;BR /&gt;&lt;BR /&gt;If this solved your problem, please mark it as a solution!!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 16:12:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-table-alter-the-filter-context/m-p/4061904#M161233</guid>
      <dc:creator>shafiz_p</dc:creator>
      <dc:date>2024-07-25T16:12:42Z</dc:date>
    </item>
  </channel>
</rss>

