<?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: Slice value based on disconnected table with dynamic values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-value-based-on-disconnected-table-with-dynamic-values/m-p/2740362#M84201</link>
    <description>&lt;P&gt;Not sure if this will work, but you could try duplicating the TREATAS, one version using 'Table'[Version.Version Level 01] and one version using 'Table'[Version.Version Level 01.Key]&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2022 09:41:02 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2022-09-01T09:41:02Z</dc:date>
    <item>
      <title>Slice value based on disconnected table with dynamic values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-value-based-on-disconnected-table-with-dynamic-values/m-p/2740064#M84168</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Is there a solution for the following problem?&lt;BR /&gt;I have a measure ( a simple SUM) that is going to be displayed in a Matrix visual.&lt;BR /&gt;I need to filter that value based on a selected version from a slicer.&lt;BR /&gt;The issue is that the values from the slicer will change in time. So working with SWITCH ( hardcoded values) is not a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to achieve a measure that is recalculated based on the user selection from a slicer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i have the fact table - containing the data used for the SUM and a disconnected table used for slicing the data.&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;</description>
      <pubDate>Thu, 01 Sep 2022 08:02:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-value-based-on-disconnected-table-with-dynamic-values/m-p/2740064#M84168</guid>
      <dc:creator>cosminzanfir</dc:creator>
      <dc:date>2022-09-01T08:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Slice value based on disconnected table with dynamic values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-value-based-on-disconnected-table-with-dynamic-values/m-p/2740219#M84185</link>
      <description>&lt;P&gt;It depends on what you are trying to achieve. If your disconnected table contains values which appear in a column in your fact table, and you want the slicer to choose only those values, you can do something like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure with filter = CALCULATE( [Base measure], TREATAS( VALUES('Disconnected table'[Column]), 'Fact table'[Column]) )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 01 Sep 2022 09:06:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-value-based-on-disconnected-table-with-dynamic-values/m-p/2740219#M84185</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-09-01T09:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Slice value based on disconnected table with dynamic values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-value-based-on-disconnected-table-with-dynamic-values/m-p/2740246#M84190</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;.&lt;BR /&gt;I was able to resolve the issue by using SELECTEDVALUE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;selection&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV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t;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;[Plan]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;Table&lt;/SPAN&gt;&lt;SPAN&gt;, Table[ Level 01.Key]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;= &lt;/SPAN&gt;&lt;SPAN&gt;selection&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;selectioncalculated&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Sep 2022 09:13:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-value-based-on-disconnected-table-with-dynamic-values/m-p/2740246#M84190</guid>
      <dc:creator>cosminzanfir</dc:creator>
      <dc:date>2022-09-01T09:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Slice value based on disconnected table with dynamic values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-value-based-on-disconnected-table-with-dynamic-values/m-p/2740254#M84192</link>
      <description>&lt;P&gt;That's good, but bear in mind it will not work if the user selects multiple options from the slicer, it will perform the same calculation as if they made no selections. TREATAS will work for 0, 1 or more selections&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 09:15:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-value-based-on-disconnected-table-with-dynamic-values/m-p/2740254#M84192</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-09-01T09:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Slice value based on disconnected table with dynamic values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-value-based-on-disconnected-table-with-dynamic-values/m-p/2740280#M84195</link>
      <description>&lt;P&gt;Using TREATAS might be a better solution but keep getting the error:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 09:23:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-value-based-on-disconnected-table-with-dynamic-values/m-p/2740280#M84195</guid>
      <dc:creator>cosminzanfir</dc:creator>
      <dc:date>2022-09-01T09:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Slice value based on disconnected table with dynamic values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-value-based-on-disconnected-table-with-dynamic-values/m-p/2740362#M84201</link>
      <description>&lt;P&gt;Not sure if this will work, but you could try duplicating the TREATAS, one version using 'Table'[Version.Version Level 01] and one version using 'Table'[Version.Version Level 01.Key]&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 09:41:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-value-based-on-disconnected-table-with-dynamic-values/m-p/2740362#M84201</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-09-01T09:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Slice value based on disconnected table with dynamic values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-value-based-on-disconnected-table-with-dynamic-values/m-p/2740397#M84205</link>
      <description>&lt;P&gt;Just tried it...not a solution. the message stays the same. But anyway. the solution is ok, just need to make sure to set it to single select.&lt;BR /&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 09:47:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-value-based-on-disconnected-table-with-dynamic-values/m-p/2740397#M84205</guid>
      <dc:creator>cosminzanfir</dc:creator>
      <dc:date>2022-09-01T09:47:08Z</dc:date>
    </item>
  </channel>
</rss>

