<?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 DAX - Group By Ignore Slicers in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Group-By-Ignore-Slicers/m-p/1436699#M26851</link>
    <description>&lt;P&gt;I am attempting to create a measure to show revenue over the past 30 days and have it ignore any date slicers on the page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this slicer that works to do this, but it only shows totals instead of breaking it down by day:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;M_BookedRevenueMonth = 
CALCULATE(
    SUM(RevenueChannel[BookedRevenue]),
    FILTER(
        ALL('Date'),
        'Date'[Date] &amp;gt;= TODAY()-30
        &amp;amp;&amp;amp; 'Date'[Date] &amp;lt; TODAY()
    )
)&lt;/LI-CODE&gt;&lt;P&gt;I have then created a new measure that shows me the break down by date, but I cannot figure out how to ignore the slicers within a groupby():&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;M_TestMeasure = 
CALCULATE (
    SUMX (
        FILTER (
            GROUPBY (
                RevenueChannel,
                RevenueChannel[SearchType],
                RevenueChannel[ChannelType],
                'Date'[Date],
                'Date'[AccountingWeek],
                'Date'[WeekNumber],
                'Date'[AccountingMonthEnglishAbbrYear],
                'Date'[AccountingMonth],
                'Date'[AccountingYear],
                "Revenue", SUMX ( CURRENTGROUP (), RevenueChannel[BookedRevenue] )
            ),
        'Date'[Date] &amp;gt;= TODAY()-30
        &amp;amp;&amp;amp; 'Date'[Date] &amp;lt; TODAY()
        ),
        [Revenue]
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Oct 2020 18:19:17 GMT</pubDate>
    <dc:creator>zfemmer</dc:creator>
    <dc:date>2020-10-15T18:19:17Z</dc:date>
    <item>
      <title>DAX - Group By Ignore Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Group-By-Ignore-Slicers/m-p/1436699#M26851</link>
      <description>&lt;P&gt;I am attempting to create a measure to show revenue over the past 30 days and have it ignore any date slicers on the page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this slicer that works to do this, but it only shows totals instead of breaking it down by day:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;M_BookedRevenueMonth = 
CALCULATE(
    SUM(RevenueChannel[BookedRevenue]),
    FILTER(
        ALL('Date'),
        'Date'[Date] &amp;gt;= TODAY()-30
        &amp;amp;&amp;amp; 'Date'[Date] &amp;lt; TODAY()
    )
)&lt;/LI-CODE&gt;&lt;P&gt;I have then created a new measure that shows me the break down by date, but I cannot figure out how to ignore the slicers within a groupby():&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;M_TestMeasure = 
CALCULATE (
    SUMX (
        FILTER (
            GROUPBY (
                RevenueChannel,
                RevenueChannel[SearchType],
                RevenueChannel[ChannelType],
                'Date'[Date],
                'Date'[AccountingWeek],
                'Date'[WeekNumber],
                'Date'[AccountingMonthEnglishAbbrYear],
                'Date'[AccountingMonth],
                'Date'[AccountingYear],
                "Revenue", SUMX ( CURRENTGROUP (), RevenueChannel[BookedRevenue] )
            ),
        'Date'[Date] &amp;gt;= TODAY()-30
        &amp;amp;&amp;amp; 'Date'[Date] &amp;lt; TODAY()
        ),
        [Revenue]
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 18:19:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Group-By-Ignore-Slicers/m-p/1436699#M26851</guid>
      <dc:creator>zfemmer</dc:creator>
      <dc:date>2020-10-15T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Group By Ignore Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Group-By-Ignore-Slicers/m-p/1437277#M26867</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="256871" data-lia-user-login="zfemmer" class="lia-mention lia-mention-user"&gt;zfemmer&lt;/a&gt; , If want to ignore the filter, best is disable interaction. &lt;/P&gt;
&lt;P&gt;Most of the time when you give you own filter you will end up grouping data into one date.&lt;/P&gt;
&lt;P&gt;For that you refer to this video, there is a solution for that: &lt;A href="https://www.youtube.com/watch?v=duMSovyosXE" target="_blank"&gt;https://www.youtube.com/watch?v=duMSovyosXE&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 02:43:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Group-By-Ignore-Slicers/m-p/1437277#M26867</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-10-16T02:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Group By Ignore Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Group-By-Ignore-Slicers/m-p/1442780#M27003</link>
      <description>&lt;P&gt;The issue with this is that I have multiple measures feeding into the same visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the end user selects a measure they want; WTD, MTD, YTD, or a specific date range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the date range slicer to feed into the date range measure, but not the others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this make sense?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 17:49:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Group-By-Ignore-Slicers/m-p/1442780#M27003</guid>
      <dc:creator>zfemmer</dc:creator>
      <dc:date>2020-10-19T17:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Group By Ignore Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Group-By-Ignore-Slicers/m-p/1442788#M27005</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="256871" data-lia-user-login="zfemmer" class="lia-mention lia-mention-user"&gt;zfemmer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried ALL( RevenueChannel) as the first argument for the GROUPBY ( )?&lt;/P&gt;
&lt;P&gt;Otherwise&amp;nbsp; add ALL( RevenueChannel) as last argument to the outermost CALCULATE( )&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving kudos if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 17:54:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Group-By-Ignore-Slicers/m-p/1442788#M27005</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-10-19T17:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Group By Ignore Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Group-By-Ignore-Slicers/m-p/1442794#M27006</link>
      <description>&lt;P&gt;Can you tell me where to put it?&lt;BR /&gt;&lt;BR /&gt;I thought this was the answer, but I could not for whatever reason figure out where the ALL would go within the group by.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 18:01:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Group-By-Ignore-Slicers/m-p/1442794#M27006</guid>
      <dc:creator>zfemmer</dc:creator>
      <dc:date>2020-10-19T18:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Group By Ignore Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Group-By-Ignore-Slicers/m-p/1442810#M27007</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="256871" data-lia-user-login="zfemmer" class="lia-mention lia-mention-user"&gt;zfemmer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the first argument, base table, of GROUPBY ( &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;M_TestMeasure = 
CALCULATE (
    SUMX (
        FILTER (
            GROUPBY (
                ALL ( RevenueChannel ),
                RevenueChannel[SearchType],
                RevenueChannel[ChannelType],
                'Date'[Date],
                'Date'[AccountingWeek],
                'Date'[WeekNumber],
                'Date'[AccountingMonthEnglishAbbrYear],
                'Date'[AccountingMonth],
                'Date'[AccountingYear],
                "Revenue", SUMX ( CURRENTGROUP (), RevenueChannel[BookedRevenue] )
            ),
        'Date'[Date] &amp;gt;= TODAY()-30
        &amp;amp;&amp;amp; 'Date'[Date] &amp;lt; TODAY()
        ),
        [Revenue]
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;or as second argument for the CALCULATE( ) (which by the way I am not sure why you were using it):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;M_TestMeasure =
CALCULATE (
    SUMX (
        FILTER (
            GROUPBY (
                RevenueChannel,
                RevenueChannel[SearchType],
                RevenueChannel[ChannelType],
                'Date'[Date],
                'Date'[AccountingWeek],
                'Date'[WeekNumber],
                'Date'[AccountingMonthEnglishAbbrYear],
                'Date'[AccountingMonth],
                'Date'[AccountingYear],
                "Revenue", SUMX ( CURRENTGROUP (), RevenueChannel[BookedRevenue] )
            ),
            'Date'[Date]
                &amp;gt;= TODAY () - 30
                &amp;amp;&amp;amp; 'Date'[Date] &amp;lt; TODAY ()
        ),
        [Revenue]
    ),
    ALL ( RevenueChannel )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving kudos if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&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>Mon, 19 Oct 2020 18:06:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Group-By-Ignore-Slicers/m-p/1442810#M27007</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-10-19T18:06:56Z</dc:date>
    </item>
  </channel>
</rss>

