<?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: How to reference slicer from another based on user selection using switch in dax? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-reference-slicer-from-another-based-on-user-selection/m-p/3137628#M111899</link>
    <description>&lt;P&gt;Thanks for this!&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;I didn't realize that there is an option for this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; great!&lt;/P&gt;</description>
    <pubDate>Fri, 17 Mar 2023 02:21:22 GMT</pubDate>
    <dc:creator>ironboy0418</dc:creator>
    <dc:date>2023-03-17T02:21:22Z</dc:date>
    <item>
      <title>How to reference slicer from another based on user selection using switch in dax?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-reference-slicer-from-another-based-on-user-selection/m-p/3137418#M111884</link>
      <description>&lt;P&gt;Hello, I am trying to reference a date column to a slicer. First, I have created a query table that has this selection/values:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Slicer 1:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The objective is when I selected a value in slicer 1, the selection should update in slicer 2. Here are the example options for Quarterly, Monthly, and Weekly from my date table that I am trying to reference with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quarterly:&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;Monthly:&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;Weekly:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my dax formula. However, I am not sure how to write for it to be referenced using switch:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RelativePeriodSelection = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; SelectYearQuarter = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('Date'[YearQuarter])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; SelectYearMonth = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('Date'[YearMonth2])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; SelectWeekStart = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('Date'[Start of Week])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; DynamicDateValue =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(Period[RelativeDate]), &lt;/SPAN&gt;&lt;SPAN&gt;"Quarterly"&lt;/SPAN&gt;&lt;SPAN&gt;, SelectYearQuarter, &lt;/SPAN&gt;&lt;SPAN&gt;"Monthly"&lt;/SPAN&gt;&lt;SPAN&gt;, SelectYearMonth, &lt;/SPAN&gt;&lt;SPAN&gt;"Weekly"&lt;/SPAN&gt;&lt;SPAN&gt;, SelectWeekStart&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&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;DynamicDateValue&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;P&gt;Result:&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cc&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Mar 2023 01:22:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-reference-slicer-from-another-based-on-user-selection/m-p/3137418#M111884</guid>
      <dc:creator>ironboy0418</dc:creator>
      <dc:date>2023-03-17T01:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to reference slicer from another based on user selection using switch in dax?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-reference-slicer-from-another-based-on-user-selection/m-p/3137535#M111891</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="479972" data-lia-user-login="ironboy0418" class="lia-mention lia-mention-user"&gt;ironboy0418&lt;/a&gt; I think this may help, the field parameter feature, You may have rename your columns&lt;/P&gt;
&lt;P&gt;Power BI- Create dynamic slicers using field parameters: &lt;A href="https://youtu.be/H2ZxWaHAJZQ" target="_blank"&gt;https://youtu.be/H2ZxWaHAJZQ&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 01:47:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-reference-slicer-from-another-based-on-user-selection/m-p/3137535#M111891</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-03-17T01:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to reference slicer from another based on user selection using switch in dax?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-reference-slicer-from-another-based-on-user-selection/m-p/3137628#M111899</link>
      <description>&lt;P&gt;Thanks for this!&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;I didn't realize that there is an option for this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; great!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 02:21:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-reference-slicer-from-another-based-on-user-selection/m-p/3137628#M111899</guid>
      <dc:creator>ironboy0418</dc:creator>
      <dc:date>2023-03-17T02:21:22Z</dc:date>
    </item>
  </channel>
</rss>

