<?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: Automatically set dependent slicer depending on user selection of another slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Automatically-set-dependent-slicer-depending-on-user-selection/m-p/2760136#M85519</link>
    <description>&lt;P&gt;Hi&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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not quite what I was looking for though.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The relationship between the departments and region tables exist already. I am trying to make it so that if a department is selected, the region dropdown is automatically set to what ever region the particular selected department belongs to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g., Department "IT - California" is selected, so the Region "California" should be automatically displayed in the dropdown slicer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently this works, but the dropdown slicer dispalys "All". If you expand on the dropdown, it will only display the region the department belongs to - but I want to automatically set (display) this in the dropdown itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here you can see that department "Mineral" is selected, yet region displays "All".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yet if I expand upon the region dropdown slicer, it displays only the region that department "Mineral" belongs to&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of showing "All" I want an interaction to occur that if a particular Department is selected, then it's related region should be automatically displayed in the slicer dropdown - not "All".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Sun, 11 Sep 2022 09:10:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-11T09:10:34Z</dc:date>
    <item>
      <title>Automatically set dependent slicer depending on user selection of another slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Automatically-set-dependent-slicer-depending-on-user-selection/m-p/2757038#M85269</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two slicers: Region and Department&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Departments sit under regions (hierarchy).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to set up the behaviour to automatically display the region within the slicer dropdown based off the users selection of the department.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g., Department "IT55" sits under Region "55", therefore if a user selects "IT55" then the region dropdown should automatically display "55".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently the filter works as expected, but does not display the specific region (i.e., will filter to the relevant related region, but will not display it within the dropdown).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Mic&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 04:40:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Automatically-set-dependent-slicer-depending-on-user-selection/m-p/2757038#M85269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-09T04:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically set dependent slicer depending on user selection of another slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Automatically-set-dependent-slicer-depending-on-user-selection/m-p/2757541#M85316</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , refer if my video on the same can help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to filter the slicer of a disconnected table: &lt;A href="https://youtu.be/cV5WfaQt6C8" target="_blank"&gt;https://youtu.be/cV5WfaQt6C8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 08:12:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Automatically-set-dependent-slicer-depending-on-user-selection/m-p/2757541#M85316</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-09-09T08:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically set dependent slicer depending on user selection of another slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Automatically-set-dependent-slicer-depending-on-user-selection/m-p/2760136#M85519</link>
      <description>&lt;P&gt;Hi&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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not quite what I was looking for though.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The relationship between the departments and region tables exist already. I am trying to make it so that if a department is selected, the region dropdown is automatically set to what ever region the particular selected department belongs to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g., Department "IT - California" is selected, so the Region "California" should be automatically displayed in the dropdown slicer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently this works, but the dropdown slicer dispalys "All". If you expand on the dropdown, it will only display the region the department belongs to - but I want to automatically set (display) this in the dropdown itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here you can see that department "Mineral" is selected, yet region displays "All".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yet if I expand upon the region dropdown slicer, it displays only the region that department "Mineral" belongs to&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of showing "All" I want an interaction to occur that if a particular Department is selected, then it's related region should be automatically displayed in the slicer dropdown - not "All".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2022 09:10:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Automatically-set-dependent-slicer-depending-on-user-selection/m-p/2760136#M85519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-11T09:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically set dependent slicer depending on user selection of another slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Automatically-set-dependent-slicer-depending-on-user-selection/m-p/2761465#M85611</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Sorry, only ALL appears in the first line of the Dropdown slicer. This may be a power bi design problem.&lt;/P&gt;
&lt;P&gt;You can submit an idea for it at &lt;A href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fideas.powerbi.com%2Fforums&amp;amp;data=05%7C01%7Cliuyangl%40wicresoft.com%7C285ca95c164d4c5cf95008da6bc76353%7C05baf3e556fb496e9c41692c065323a4%7C1%7C0%7C637940801358249920%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=lXonc0hvO5WVLfXhMyXHrQDgSq6A8zZ74P9XFIndJnM%3D&amp;amp;reserved=0" target="_blank"&gt;https://ideas.powerbi.com/forums&lt;/A&gt; and wait for users with the same needs as you to vote for you to help make it happen as soon as possible.&lt;/P&gt;
&lt;P&gt;Or do you consider the following options&lt;/P&gt;
&lt;P&gt;1. You can turn it into a List form, which will display the Region information directly:&lt;/P&gt;
&lt;P&gt;Create calculated table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 =
DISTINCT('Table'[Department])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Create measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
var _select=
SELECTEDVALUE('Table 2'[Department])
var _selectcolumn=SELECTCOLUMNS(FILTER(ALL('Table'),'Table'[Region]=MAX('Table'[Region])),"1",[Department])
return
IF(
    _select in _selectcolumn,1,0)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Place [Flag]in Filters, set is=1, apply filter.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Or set a custom title, after the slicer is selected, the corresponding Region will be displayed on the title.&lt;/P&gt;
&lt;P&gt;Create measure：&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
var _select=
SELECTEDVALUE('Table 2'[Department])
return
"Region :"&amp;amp;" "&amp;amp;
MAXX(FILTER(ALL('Table'),_select ='Table'[Department]),[Region])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Format&amp;nbsp; --&amp;nbsp; Slicer header – fx.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Result：&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If you need pbix, please click here.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://m365x97431909-my.sharepoint.com/:u:/g/personal/ly_m365x97431909_onmicrosoft_com/EYKHVWDAnM9LkdEbB1WrMkMBypKksvxwx5oLMt6NPWnNvA?e=IauoCv" target="_blank"&gt;&lt;SPAN&gt;Test01.pbix&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 09:39:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Automatically-set-dependent-slicer-depending-on-user-selection/m-p/2761465#M85611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-12T09:39:18Z</dc:date>
    </item>
  </channel>
</rss>

