<?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: Measure Slicer doesn't work on my visuals in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4779800#M183054</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="824799" data-lia-user-login="Szokens" class="lia-mention lia-mention-user"&gt;Szokens&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Just wanted to follow up and confirm that everything has been going well on this. Please let me know if there’s anything from our end.&lt;BR /&gt;Please feel free to reach out Microsoft fabric community forum.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jul 2025 11:01:49 GMT</pubDate>
    <dc:creator>v-sgandrathi</dc:creator>
    <dc:date>2025-07-29T11:01:49Z</dc:date>
    <item>
      <title>Measure Slicer doesn't work on my visuals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4770781#M182712</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I started new topic to not create a mess. So I had my solution working with all calculations described in this post&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-table-column-values-changes-on-slicer-selection/m-p/4749881#M181871" target="_blank"&gt;https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-table-column-values-changes-on-slicer-selection/m-p/4749881#M181871&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Now I would like to enhance my report by additional feature available for user. I would like user to apply additional slicer which will "Include" or "Exclude" weekends in visual results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created following disconnected table:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Weekend_Toggle_Table =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;DATATABLE(&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp; "Toggle_Weekends",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp; STRING, &lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp; "Order",INTEGER,&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;{ &lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp; {"Exclude",1},&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp; {"Include",2}&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;})&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;in my semantic model I have also connected "dmn_date" table with field "dmn_date[is_weekday]" having "Y" or "N" values.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;Then I created this measure:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;toogle_weekends_filter =&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;VAR SelectedToggle = SELECTEDVALUE(Weekend_Toggle_Table[Toggle_Weekends])&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;VAR Isweekday = IF(MAX(dmn_date[is_weekday])="Y",1,0)&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;RETURN&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;SWITCH(TRUE(),&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp; SelectedToggle="Exclude" &amp;amp;&amp;amp; Isweekday=1,1,&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp; SelectedToggle="Include",1,&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp; 0)&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="3"&gt;When I apply above measure to visual filters pane of randomly created table visual (screenshot below) and set value to "1", it works fine, however when I do the same for my visual with calcs described in post mentioned above, visual doesn't react.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't wan't to give user ability to slice by dmn_date[is_weekday] as "Y"/"N" or all, this is why I need to invent "Include" / "Exclude" weekends slicer.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Jul 2025 13:13:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4770781#M182712</guid>
      <dc:creator>Szokens</dc:creator>
      <dc:date>2025-07-21T13:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Slicer doesn't work on my visuals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4770925#M182719</link>
      <description>&lt;P&gt;I believe you're overthinking the toggle. All you need to do is make a new conditional column based on your is_weekday. If Y then include if N then exclude. Toss that in a slicer and you're done!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 14:08:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4770925#M182719</guid>
      <dc:creator>Syk</dc:creator>
      <dc:date>2025-07-21T14:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Slicer doesn't work on my visuals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4771727#M182748</link>
      <description>&lt;P&gt;so this will give me two slicer options Mon-Fri (for "Include") and only weekends (for "Exclude"). I would need to make slicer multiselect and enable "all". Then sure it is fine.&lt;/P&gt;&lt;P&gt;I wonder however if is it possible to make it the way "Include" - whole week Mon-Sun, "Exclude" - without weekends, Mon-Fri and have only single selection slicer.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 06:31:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4771727#M182748</guid>
      <dc:creator>Szokens</dc:creator>
      <dc:date>2025-07-22T06:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Slicer doesn't work on my visuals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4772177#M182760</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="824799" data-lia-user-login="Szokens" class="lia-mention lia-mention-user"&gt;Szokens&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you want to give users a single slicer where:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Include → Shows all days (Mon-Sun)&lt;/LI&gt;
&lt;LI&gt;Exclude → Shows only weekdays (Mon-Fri)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;You don’t want to expose the is_weekday column directly to users, which makes sense.&lt;/P&gt;
&lt;P&gt;The issue is happening your measure works fine when you test it in a simple table that shows dates and weekdays.&lt;BR /&gt;But when you apply the same logic in visuals where you have pre-calculated logic or summary calculations like in your previous post, the dmn_date[is_weekday] context may not be properly available.&lt;BR /&gt;That’s why the toggle is not reacting properly in those visuals.&lt;BR /&gt;&lt;BR /&gt;Please find the attached file for your reference.&lt;BR /&gt;Hope this helps if you have any queries we are&amp;nbsp; happy to assist you further.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sahasra.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 11:30:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4772177#M182760</guid>
      <dc:creator>v-sgandrathi</dc:creator>
      <dc:date>2025-07-22T11:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Slicer doesn't work on my visuals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4772280#M182765</link>
      <description>&lt;P&gt;is it possible to make it working as expected in Barchart or Linechart? I see in the simple table it is ok but when trying to apply on mentioned visuals I don't get how to customize them to make it working.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 12:32:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4772280#M182765</guid>
      <dc:creator>Szokens</dc:creator>
      <dc:date>2025-07-22T12:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Slicer doesn't work on my visuals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4773039#M182795</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="824799" data-lia-user-login="Szokens" class="lia-mention lia-mention-user"&gt;Szokens&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, it is certainly possible to have your weekend toggle slicer function within visuals such as bar charts and line charts. However, it is important to ensure that the filtering logic is incorporated directly into the DAX measures used in these visuals.&lt;/P&gt;
&lt;P&gt;While your current method is effective in table visuals due to the row context, bar and line charts rely on aggregated data and may not respond to visual-level filters in the same way. Therefore, embedding the logic within the measure calculation is essential for consistent results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total_Value_With_Toggle :=

VAR SelectedToggle = SELECTEDVALUE(Weekend_Toggle_Table[Toggle_Weekends], "Include")

RETURN

CALCULATE(

    [Your_Base_Measure], -- Replace with your actual base measure (e.g., [Total Sales])

    FILTER(

        dmn_date,

        SWITCH(

            TRUE(),

            SelectedToggle = "Exclude" &amp;amp;&amp;amp; dmn_date[is_weekday] = "Y", TRUE(),

            SelectedToggle = "Include", TRUE(),

            FALSE()

        )))&lt;/LI-CODE&gt;
&lt;P&gt;Use this measure in your bar or line chart.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 05:41:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4773039#M182795</guid>
      <dc:creator>v-sgandrathi</dc:creator>
      <dc:date>2025-07-23T05:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Slicer doesn't work on my visuals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4777214#M182973</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="824799" data-lia-user-login="Szokens" class="lia-mention lia-mention-user"&gt;Szokens&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to check in your situation regarding the issue. Have you resolved it?&lt;SPAN data-teams="true"&gt;&amp;nbsp; Should you have any further questions, feel free to reach out.&lt;BR /&gt;Thank you for being a part of the Microsoft Fabric Community Forum!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jul 2025 16:21:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4777214#M182973</guid>
      <dc:creator>v-sgandrathi</dc:creator>
      <dc:date>2025-07-26T16:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Slicer doesn't work on my visuals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4779800#M183054</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="824799" data-lia-user-login="Szokens" class="lia-mention lia-mention-user"&gt;Szokens&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Just wanted to follow up and confirm that everything has been going well on this. Please let me know if there’s anything from our end.&lt;BR /&gt;Please feel free to reach out Microsoft fabric community forum.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 11:01:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4779800#M183054</guid>
      <dc:creator>v-sgandrathi</dc:creator>
      <dc:date>2025-07-29T11:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Slicer doesn't work on my visuals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4783717#M183165</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="824799" data-lia-user-login="Szokens" class="lia-mention lia-mention-user"&gt;Szokens&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Just wanted to check regarding your question. We haven’t heard back and want to ensure you're not stuck. If you need anything else or have updates to share, we’re here to help!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 04:15:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4783717#M183165</guid>
      <dc:creator>v-sgandrathi</dc:creator>
      <dc:date>2025-08-01T04:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Slicer doesn't work on my visuals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4783948#M183175</link>
      <description>&lt;P&gt;finally I have used&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="346587" data-lia-user-login="Syk" class="lia-mention lia-mention-user"&gt;Syk&lt;/a&gt;&amp;nbsp; approach which is simpliest and fast.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 07:28:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Slicer-doesn-t-work-on-my-visuals/m-p/4783948#M183175</guid>
      <dc:creator>Szokens</dc:creator>
      <dc:date>2025-08-01T07:28:53Z</dc:date>
    </item>
  </channel>
</rss>

