<?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 Slicers and Relationships in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicers-and-Relationships/m-p/4409714#M175114</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the filters to update one of the charts I have in my dashboard:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Updating Media&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I would like to do (not working right now):&lt;/P&gt;&lt;P&gt;When I click on Select All, it shows all 5 colours&lt;/P&gt;&lt;P&gt;When I click on 2023/24, show 2020, 2022, target 2024/25&lt;/P&gt;&lt;P&gt;When I click on 2024/25, show 2020, 2022, target 2024/25, 2024&lt;/P&gt;&lt;P&gt;When I click on 2025/26, show 2020, 2022, target 2024/25, target 2025/26&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the data:&lt;/P&gt;&lt;P&gt;Fiscal Year data (slicer):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chart data:&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;What type of column should I add to both datasets so that I can build a relationship? I can't simply do fiscal years because I have SelectAll in the slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Bruna&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 13 Feb 2025 19:31:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-02-13T19:31:55Z</dc:date>
    <item>
      <title>Slicers and Relationships</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicers-and-Relationships/m-p/4409714#M175114</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the filters to update one of the charts I have in my dashboard:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Updating Media&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I would like to do (not working right now):&lt;/P&gt;&lt;P&gt;When I click on Select All, it shows all 5 colours&lt;/P&gt;&lt;P&gt;When I click on 2023/24, show 2020, 2022, target 2024/25&lt;/P&gt;&lt;P&gt;When I click on 2024/25, show 2020, 2022, target 2024/25, 2024&lt;/P&gt;&lt;P&gt;When I click on 2025/26, show 2020, 2022, target 2024/25, target 2025/26&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the data:&lt;/P&gt;&lt;P&gt;Fiscal Year data (slicer):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chart data:&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;What type of column should I add to both datasets so that I can build a relationship? I can't simply do fiscal years because I have SelectAll in the slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Bruna&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Feb 2025 19:31:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicers-and-Relationships/m-p/4409714#M175114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-13T19:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Slicers and Relationships</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicers-and-Relationships/m-p/4409716#M175115</link>
      <description>&lt;P&gt;This is the chart that I referenced:&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, 13 Feb 2025 19:32:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicers-and-Relationships/m-p/4409716#M175115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-13T19:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Slicers and Relationships</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicers-and-Relationships/m-p/4410031#M175133</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
var _select=SELECTEDVALUE('Fiscal Year data'[Fiscal Year])
RETURN
IF(
    HASONEFILTER('Fiscal Year data'[Fiscal Year])=FALSE(),1,
SWITCH(
    TRUE(),
_select = "2023/24" &amp;amp;&amp;amp; MAX('Table'[Year]) in {"2020","2022","Target 2024/25"},1,
_select = "2024/25" &amp;amp;&amp;amp; MAX('Table'[Year]) in {"2020","2022","Target 2024/25","2024"},1,
_select = "2025/26" &amp;amp;&amp;amp; MAX('Table'[Year]) in {"2020","2022","Target 2024/25","Target 2025/26"},1,0)  )&lt;/LI-CODE&gt;
&lt;P&gt;2. Place [Flag]in Filters, set is=1, apply filter.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;Slicer – Select all:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Slicer – 2023/24:&lt;/P&gt;
&lt;P&gt;&lt;img /&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 02:08:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicers-and-Relationships/m-p/4410031#M175133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-14T02:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Slicers and Relationships</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicers-and-Relationships/m-p/4411779#M175211</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It didn't work - I wonder if it's because the slicer is single select? Here is what the data looks like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And in the report:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Slicer:&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;What can I do instead?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bruna&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 22:11:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicers-and-Relationships/m-p/4411779#M175211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-14T22:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Slicers and Relationships</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicers-and-Relationships/m-p/4413334#M175266</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Is your sample data in the following image style with a [Select All] column next to it to create a hierarchical effect:：&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;You can change measure to the following:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
var _select = SELECTCOLUMNS('Fiscal Year data',"select",[Fiscal Year])
var _count=COUNTX(ALLSELECTED('Fiscal Year data'),[Fiscal Year])
return
IF(
    HASONEVALUE('Fiscal Year data'[Select ALL])=TRUE()&amp;amp;&amp;amp;_count=3,1,
SWITCH(
    TRUE(),
_count=1&amp;amp;&amp;amp;CONTAINSSTRING("2023/24",_select)=TRUE()&amp;amp;&amp;amp; MAX('Table'[Year]) in {"2020","2022","Target 2024/25"} ,1,
_count=1&amp;amp;&amp;amp;CONTAINSSTRING(_select, "2024/25")=TRUE() &amp;amp;&amp;amp; MAX('Table'[Year]) in {"2020","2022","Target 2024/25","2024"},1,
_count=1&amp;amp;&amp;amp;CONTAINSSTRING(_select, "2025/26")=TRUE() &amp;amp;&amp;amp; MAX('Table'[Year]) in {"2020","2022","Target 2024/25","Target 2025/26"},1,0
))&lt;/LI-CODE&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;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, 17 Feb 2025 08:16:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicers-and-Relationships/m-p/4413334#M175266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-17T08:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Slicers and Relationships</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicers-and-Relationships/m-p/4416337#M175363</link>
      <description>&lt;P&gt;Thanks, but it is not working:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It onlt shows 2020 data for 2023/24 and SelectAll:&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;For 2024/25:&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;2025/26:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here are is the DAX:&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;&lt;img /&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;And filters:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 17:29:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicers-and-Relationships/m-p/4416337#M175363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-18T17:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Slicers and Relationships</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicers-and-Relationships/m-p/4632258#M177357</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&amp;nbsp;any luck solving this issue? Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 23:22:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicers-and-Relationships/m-p/4632258#M177357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-03-31T23:22:27Z</dc:date>
    </item>
  </channel>
</rss>

