<?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: URGENT!! Measure that ignores slicers/ filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Measure-that-ignores-slicers-filters/m-p/3716481#M144661</link>
    <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DistinctCount_Category_Occasions_MultiSelect_Part12 =
VAR CategorySelection = ISFILTERED('df_Category Purchased'[Category Purchased])
VAR SelectedChannel = SELECTEDVALUE('df_Category Purchased'[Category Purchased])
RETURN
    IF (
        CategorySelection,
        IF (
            NOT SelectedChannel IN { "JUICE", "SPORTS DRINKS", "PACKAGED WATER", "RTD TEA" },
            SUMX(
                VALUES(df_Barriers_SSD[Barriers_SSD]),
                CALCULATE(
                    DISTINCTCOUNT('Respondent'[Unique_ID]),
                    'df_Occasions'[value1] = "Yes",
                    'SankeyTable'[Category_Planning] IN { "Decided", "", "Open/Considered", "Not Answered" },
                    FILTER(
                        ALL('SankeyTable'[Category_Planning]),  // This line removes the slicer/filter effect on Category_Planning
                        [IsBarriersSSD]
                    )
                )
            ),
            BLANK()
        ),
        SUMX(
            VALUES(df_Barriers_SSD[Barriers_SSD]),
            CALCULATE(
                DISTINCTCOUNT('Respondent'[Unique_ID]),
                'df_Occasions'[value1] = "Yes",
                'SankeyTable'[Category_Planning] IN { "Decided", "", "Open/Considered", "Not Answered" },
                FILTER(
                    ALL('SankeyTable'[Category_Planning]),  // This line removes the slicer/filter effect on Category_Planning
                    [IsBarriersSSD]
                )
            )
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2024 08:46:49 GMT</pubDate>
    <dc:creator>Sahir_Maharaj</dc:creator>
    <dc:date>2024-02-22T08:46:49Z</dc:date>
    <item>
      <title>URGENT!! Measure that ignores slicers/ filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Measure-that-ignores-slicers-filters/m-p/3716452#M144660</link>
      <description>&lt;P&gt;Hello Power BI community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me modify this code such that if I use SankeyTable'[Category_Planning] as a slicer in my power bi report and filter any one of its values, this measure should be able to ignore the SankeyTable'[Category_Planning] slicer and always keeps all the 4 values of&amp;nbsp; SankeyTable'[Category_Planning]&amp;nbsp; in the calculation?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="14361" data-lia-user-login="MFelix" class="lia-mention lia-mention-user"&gt;MFelix&lt;/a&gt;&amp;nbsp;,&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;,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="19851" data-lia-user-login="Ashish_Mathur" class="lia-mention lia-mention-user"&gt;Ashish_Mathur&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DistinctCount_Category_Occasions_MultiSelect_Part12 =
VAR CategorySelection = ISFILTERED('df_Category Purchased'[Category Purchased])
VAR SelectedChannel = SELECTEDVALUE('df_Category Purchased'[Category Purchased])
RETURN
    IF (
        CategorySelection,
        IF (
            Not SelectedChannel IN { "JUICE", "SPORTS DRINKS", "PACKAGED WATER", "RTD TEA"},
            (SUMX(VALUES(df_Barriers_SSD[Barriers_SSD]),
            CALCULATE(
                DISTINCTCOUNT('Respondent'[Unique_ID]),
                'df_Occasions'[value1] = "Yes",'SankeyTable'[Category_Planning] IN {"Decided", "", "Open/Considered", "Not Answered"},
                FILTER(
                    'Respondent',
                    [IsBarriersSSD]
                )
            ))),
            BLANK ()
        ), (SUMX(VALUES(df_Barriers_SSD[Barriers_SSD]),
            CALCULATE(
                DISTINCTCOUNT('Respondent'[Unique_ID]),
                'df_Occasions'[value1] = "Yes",'SankeyTable'[Category_Planning] IN {"Decided", "", "Open/Considered", "Not Answered"},
                FILTER(
                    'Respondent',
                    [IsBarriersSSD]
                )
            )))
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Feb 2024 08:38:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Measure-that-ignores-slicers-filters/m-p/3716452#M144660</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-22T08:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT!! Measure that ignores slicers/ filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Measure-that-ignores-slicers-filters/m-p/3716481#M144661</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DistinctCount_Category_Occasions_MultiSelect_Part12 =
VAR CategorySelection = ISFILTERED('df_Category Purchased'[Category Purchased])
VAR SelectedChannel = SELECTEDVALUE('df_Category Purchased'[Category Purchased])
RETURN
    IF (
        CategorySelection,
        IF (
            NOT SelectedChannel IN { "JUICE", "SPORTS DRINKS", "PACKAGED WATER", "RTD TEA" },
            SUMX(
                VALUES(df_Barriers_SSD[Barriers_SSD]),
                CALCULATE(
                    DISTINCTCOUNT('Respondent'[Unique_ID]),
                    'df_Occasions'[value1] = "Yes",
                    'SankeyTable'[Category_Planning] IN { "Decided", "", "Open/Considered", "Not Answered" },
                    FILTER(
                        ALL('SankeyTable'[Category_Planning]),  // This line removes the slicer/filter effect on Category_Planning
                        [IsBarriersSSD]
                    )
                )
            ),
            BLANK()
        ),
        SUMX(
            VALUES(df_Barriers_SSD[Barriers_SSD]),
            CALCULATE(
                DISTINCTCOUNT('Respondent'[Unique_ID]),
                'df_Occasions'[value1] = "Yes",
                'SankeyTable'[Category_Planning] IN { "Decided", "", "Open/Considered", "Not Answered" },
                FILTER(
                    ALL('SankeyTable'[Category_Planning]),  // This line removes the slicer/filter effect on Category_Planning
                    [IsBarriersSSD]
                )
            )
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 08:46:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Measure-that-ignores-slicers-filters/m-p/3716481#M144661</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2024-02-22T08:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT!! Measure that ignores slicers/ filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Measure-that-ignores-slicers-filters/m-p/3718010#M144758</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the following code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DistinctCount_Category_Occasions_MultiSelect_Part12 =
VAR CategorySelection =
    ISFILTERED ( 'df_Category Purchased'[Category Purchased] )
VAR SelectedChannel =
    SELECTEDVALUE ( 'df_Category Purchased'[Category Purchased] )
RETURN
    IF (
        CategorySelection,
        IF (
            NOT SelectedChannel IN { "JUICE", "SPORTS DRINKS", "PACKAGED WATER", "RTD TEA" },
            (
                SUMX (
                    VALUES ( df_Barriers_SSD[Barriers_SSD] ),
                    CALCULATE (
                        DISTINCTCOUNT ( 'Respondent'[Unique_ID] ),
                        'df_Occasions'[value1] = "Yes",
                        'SankeyTable'[Category_Planning]
                            IN { "Decided", "", "Open/Considered", "Not Answered" },
                        REMOVEFILTERS ( 'SankeyTable'[Category_Planning] ),
                        FILTER ( 'Respondent', [IsBarriersSSD] )
                    )
                )
            ),
            BLANK ()
        ),
        (
            SUMX (
                VALUES ( df_Barriers_SSD[Barriers_SSD] ),
                CALCULATE (
                    DISTINCTCOUNT ( 'Respondent'[Unique_ID] ),
                    'df_Occasions'[value1] = "Yes",
                    'SankeyTable'[Category_Planning]
                        IN { "Decided", "", "Open/Considered", "Not Answered" },
                    REMOVEFILTERS ( 'SankeyTable'[Category_Planning] ),
                    FILTER ( 'Respondent', [IsBarriersSSD] )
                )
            )
        )
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 22 Feb 2024 19:12:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Measure-that-ignores-slicers-filters/m-p/3718010#M144758</guid>
      <dc:creator>MFelix</dc:creator>
      <dc:date>2024-02-22T19:12:19Z</dc:date>
    </item>
  </channel>
</rss>

