<?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: Create Dynamic Filtering based on slicer selection in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Dynamic-Filtering-based-on-slicer-selection/m-p/1310184#M22848</link>
    <description>What does it mean "switches the column"? You cannot dynamically switch a column to be used as an axis for your visual (as I guess this is what you attempt to do). If you want to change values on an axis dynamically you have to create a column that stores all your values from the slicer and then correctly joins to other tables. Easy as that.</description>
    <pubDate>Thu, 20 Aug 2020 08:53:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-20T08:53:58Z</dc:date>
    <item>
      <title>Create Dynamic Filtering based on slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Dynamic-Filtering-based-on-slicer-selection/m-p/1309454#M22831</link>
      <description>&lt;P&gt;I am having trouble&amp;nbsp;applying a filter&amp;nbsp;that switches the column used&amp;nbsp;for the filter based on the selected slicer value.&amp;nbsp; I have a table that has the following 3 columns with a value of 1 or 0. The 3 columns are "Email", "SMS", and "Email&amp;nbsp;and SMS".&amp;nbsp; Note: The records where SMS=1 can overlap with records where Email and SMS =1 because the&amp;nbsp;"Email and SMS" column&amp;nbsp;is basically records where SMS=1 and Email=1. I want to have a slicer with the&amp;nbsp;following options: "All", "SMS", "Email", and "Email &amp;amp; SMS".&amp;nbsp;Based on the user's selection, I want the page to be filtered based on the specific column. For example, when the user selects "SMS" in the slicer,&amp;nbsp;I want the page to be filtered to column SMS=1. When the user selects "Email" in the slicer, I want the page to be filtered&amp;nbsp;to column&amp;nbsp;Email=1. When the user selects "Email &amp;amp; SMS", I want the page to be filtered to Email&amp;nbsp;and SMS=1. Finally when the user selectes "All" in the slicer, then no filter is applied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to create a calculated column that takes the selected value from the slicer and then using an if statement to assign a value of 1 or 0 on what records to include but I read online that selectedvalue() does not work with calculated column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Spotfire, I usually just create a Property Control drop down list that assigns a value to each option in the drop down list when selected. I can then use the value from the selected option in the drop down list to create a calculated field as a filter to be applied to my visualisations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does PowerBI have anything similar to Spotfire or what options do I have to achieve what&amp;nbsp;I want to do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a solution for creating a dynamic filter?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 04:15:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Dynamic-Filtering-based-on-slicer-selection/m-p/1309454#M22831</guid>
      <dc:creator>tammyl</dc:creator>
      <dc:date>2020-08-20T04:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create Dynamic Filtering based on slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Dynamic-Filtering-based-on-slicer-selection/m-p/1309479#M22832</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="253971" data-lia-user-login="tammyl" class="lia-mention lia-mention-user"&gt;tammyl&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See if this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.maxwikstrom.se/powerbi/how-to-add-total-values-in-bar-and-line-charts-in-power-bi/" target="_blank"&gt;http://www.maxwikstrom.se/powerbi/how-to-add-total-values-in-bar-and-line-charts-in-power-bi/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Harsh Nathani&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 04:33:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Dynamic-Filtering-based-on-slicer-selection/m-p/1309479#M22832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-20T04:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create Dynamic Filtering based on slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Dynamic-Filtering-based-on-slicer-selection/m-p/1310184#M22848</link>
      <description>What does it mean "switches the column"? You cannot dynamically switch a column to be used as an axis for your visual (as I guess this is what you attempt to do). If you want to change values on an axis dynamically you have to create a column that stores all your values from the slicer and then correctly joins to other tables. Easy as that.</description>
      <pubDate>Thu, 20 Aug 2020 08:53:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Dynamic-Filtering-based-on-slicer-selection/m-p/1310184#M22848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-20T08:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create Dynamic Filtering based on slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Dynamic-Filtering-based-on-slicer-selection/m-p/1312098#M22923</link>
      <description>&lt;P&gt;The slicer options all reference different column for filtering so i want&amp;nbsp;the filtering to be based on different column&amp;nbsp;(e.g. When Email is selected, i want the page to filter on Email column =1, when SMS is selected in the slicer, i want the page to filter on SMS column = 1, etc). Another way I thought of was just create another column filter&amp;nbsp;with the following condition:&lt;/P&gt;&lt;P&gt;If the selected value of the slicer is SMS then assign 1 when SMS column in the table is 1 else 0&lt;/P&gt;&lt;P&gt;If the selected value from the slicer is Email then assign 1 when Email column in the table is 1 else 0&lt;/P&gt;&lt;P&gt;If the selected value from the slicer is Email &amp;amp; SMS then assign 1 when Email and SMS column in the table is 1 else 0&lt;/P&gt;&lt;P&gt;If the selected value from the slicer is All then assign 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once i have the calculated column, i wanted to add it as a page filter and filter to 1. The trouble I am having is referencing the selected value in the calculated column.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 17:46:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Dynamic-Filtering-based-on-slicer-selection/m-p/1312098#M22923</guid>
      <dc:creator>tammyl</dc:creator>
      <dc:date>2020-08-20T17:46:25Z</dc:date>
    </item>
  </channel>
</rss>

