<?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: Using data segmentation filter results in DAX calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-data-segmentation-filter-results-in-DAX-calculation/m-p/3996987#M155396</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="761453" data-lia-user-login="nix_ferreira" class="lia-mention lia-mention-user"&gt;nix_ferreira&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can create a variable with the name you specified and enclose the the slicer column you are using with the&amp;nbsp; Selectedvalue (VAR)&lt;BR /&gt;Please try below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;new_column =&lt;BR /&gt;VAR&amp;nbsp;user_defined_stock=&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(slicercolumn)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Return&lt;BR /&gt;CALCULATE( column_1 - column_2,&amp;nbsp; stock = user_defined_stock )&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Please let me know if it solves your requirement. If so, please accept it as a solution, and your kudo is much appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2024 23:29:26 GMT</pubDate>
    <dc:creator>Moetazzahran</dc:creator>
    <dc:date>2024-06-17T23:29:26Z</dc:date>
    <item>
      <title>Using data segmentation filter results in DAX calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-data-segmentation-filter-results-in-DAX-calculation/m-p/3996864#M155381</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table that has data and one column (stock) that I use as a filter. This column only has null, 0 and 1 values. The thing is: I want to use this column in a data segmentation filter (like the one below), and reference whichever value the user chooses to filter in DAX defined columns for this same table, to create dynamic calculations. That is: &lt;STRONG&gt;I want to get the output of that filter and use it in DAX calculations&lt;/STRONG&gt;.&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;The column I want to create would have this syntax:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;new_column = CALCULATE( column_1 - column_2,&amp;nbsp; stock = user_defined_stock )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where this variable here, `user_defined_stock`, is the output of the filter above (null, 0 or 1, or multiple selection if that's even possible).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I achieve this? I tried using SELECTEDVALUE for that, but I can't figure out how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 20:39:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-data-segmentation-filter-results-in-DAX-calculation/m-p/3996864#M155381</guid>
      <dc:creator>nix_ferreira</dc:creator>
      <dc:date>2024-06-17T20:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using data segmentation filter results in DAX calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-data-segmentation-filter-results-in-DAX-calculation/m-p/3996987#M155396</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="761453" data-lia-user-login="nix_ferreira" class="lia-mention lia-mention-user"&gt;nix_ferreira&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can create a variable with the name you specified and enclose the the slicer column you are using with the&amp;nbsp; Selectedvalue (VAR)&lt;BR /&gt;Please try below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;new_column =&lt;BR /&gt;VAR&amp;nbsp;user_defined_stock=&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(slicercolumn)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Return&lt;BR /&gt;CALCULATE( column_1 - column_2,&amp;nbsp; stock = user_defined_stock )&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Please let me know if it solves your requirement. If so, please accept it as a solution, and your kudo is much appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 23:29:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-data-segmentation-filter-results-in-DAX-calculation/m-p/3996987#M155396</guid>
      <dc:creator>Moetazzahran</dc:creator>
      <dc:date>2024-06-17T23:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using data segmentation filter results in DAX calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-data-segmentation-filter-results-in-DAX-calculation/m-p/3998150#M155518</link>
      <description>&lt;P&gt;Hi! That looks like would do the job, but how can I access the output of that data segmentation filter?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 12:06:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-data-segmentation-filter-results-in-DAX-calculation/m-p/3998150#M155518</guid>
      <dc:creator>nix_ferreira</dc:creator>
      <dc:date>2024-06-18T12:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using data segmentation filter results in DAX calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-data-segmentation-filter-results-in-DAX-calculation/m-p/3998173#M155530</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="761453" data-lia-user-login="nix_ferreira" class="lia-mention lia-mention-user"&gt;nix_ferreira&lt;/a&gt;,&lt;BR /&gt;What do you mean access the output of the data segmentation filter?&lt;BR /&gt;When you select the value on the slicer, it will automatically be stored as the variable you declared in the measure then it will calculate the value.&amp;nbsp;&lt;BR /&gt;Can you please clarify?&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 12:18:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-data-segmentation-filter-results-in-DAX-calculation/m-p/3998173#M155530</guid>
      <dc:creator>Moetazzahran</dc:creator>
      <dc:date>2024-06-18T12:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using data segmentation filter results in DAX calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-data-segmentation-filter-results-in-DAX-calculation/m-p/4006394#M156829</link>
      <description>&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="761453" data-lia-user-login="nix_ferreira" class="lia-mention lia-mention-user"&gt;nix_ferreira&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Any update on this? Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;If these also don't help, please share more detailed information and description to help us clarify your scenario to test.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 07:32:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-data-segmentation-filter-results-in-DAX-calculation/m-p/4006394#M156829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-24T07:32:52Z</dc:date>
    </item>
  </channel>
</rss>

