<?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 Countrows of summarize ignores slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1025575#M13327</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;Why in the following measure the slicer on the "ATA" field is ignored and 2018 dates appear even they are not selected in the slicer? (see imagen below. "|" is just my list separator ",")&lt;/P&gt;&lt;P&gt;The table is not affected by any other slicer.&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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Apr 2020 18:50:49 GMT</pubDate>
    <dc:creator>juan_pablo</dc:creator>
    <dc:date>2020-04-14T18:50:49Z</dc:date>
    <item>
      <title>Countrows of summarize ignores slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1025575#M13327</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;Why in the following measure the slicer on the "ATA" field is ignored and 2018 dates appear even they are not selected in the slicer? (see imagen below. "|" is just my list separator ",")&lt;/P&gt;&lt;P&gt;The table is not affected by any other slicer.&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 18:50:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1025575#M13327</guid>
      <dc:creator>juan_pablo</dc:creator>
      <dc:date>2020-04-14T18:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows of summarize ignores slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1025814#M13333</link>
      <description>Because the FILTER clause in CALCULATETABLE overrides any context filters for columns specified within the filter clause. Replace your CALCULATETABLE with FILTER. FILTER will keep your current context and then filter down from that to remove the blanks.</description>
      <pubDate>Tue, 14 Apr 2020 22:31:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1025814#M13333</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-04-14T22:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows of summarize ignores slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1025882#M13337</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;thank you for your reply, but why is the measure evaluated in 2018 dates? shouldn't the slicer filter the rows in the table too and consider only 2019 months?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, in this new measure, 2018 still is used to evaluate the measure even I'm not repleasing the "ATA" date column in the filter argument of CALCULATETABLE, why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 23:26:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1025882#M13337</guid>
      <dc:creator>juan_pablo</dc:creator>
      <dc:date>2020-04-14T23:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows of summarize ignores slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1025938#M13346</link>
      <description>&lt;P&gt;Because your slicer is using the column ATA and your CALCULATETABLE's filter clause ALSO uses the column ATA. Thus, the filter in the CALCULATETABLE's filter clause REPLACES the context filter on the slicer. This is just how CALCULATETABLE works. It is clearly spelled out in the documentation:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/calculatetable-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/calculatetable-function-dax&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2 id="remarks"&gt;Remarks&lt;/H2&gt;
&lt;P&gt;The CALCULATETABLE function changes the context in which the data is filtered, and evaluates the expression in the new context that you specify. &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;For each column used in a filter argument, any existing filters on that column are removed, and the filter used in the filter argument is applied instead.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what I explained before. I am not sure how to explain this any other way.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 00:41:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1025938#M13346</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-04-15T00:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows of summarize ignores slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1027218#M13379</link>
      <description>Probably you are taking dates from different tables. take them from the same table and it'll work.&lt;BR /&gt;&lt;BR /&gt;Here's how to create good and predictable models:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=_quTwyvDfG0" target="_blank"&gt;https://www.youtube.com/watch?v=_quTwyvDfG0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=78d6mwR8GtA" target="_blank"&gt;https://www.youtube.com/watch?v=78d6mwR8GtA&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Wed, 15 Apr 2020 12:02:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1027218#M13379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-15T12:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows of summarize ignores slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1027223#M13380</link>
      <description>By the way. You should never use the automatic date hierarchies created in PBI. You must/should use your own calendar if you want to keep your sanity.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Wed, 15 Apr 2020 12:04:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1027223#M13380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-15T12:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows of summarize ignores slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1027422#M13398</link>
      <description>&lt;P&gt;Calm down &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;I'm just asking and learning.&lt;/P&gt;&lt;P&gt;The issue with the measure and the CALCULATETABLE behavior is understood, my question now is, why the measure is being evaluated on 2018 dates? Whatever the measure is, it shouldn't be evaluated on 2018 dates (rows of the table visual) because the slicer should be hiding those rows on the visual, no?&lt;/P&gt;&lt;P&gt;Or the slicers don’t affect row and column headers and just affect measures inside the tables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 13:31:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1027422#M13398</guid>
      <dc:creator>juan_pablo</dc:creator>
      <dc:date>2020-04-15T13:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows of summarize ignores slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1027426#M13399</link>
      <description>&lt;P&gt;It's the same table and column, still, thank your for the reply and the videos.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 13:33:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1027426#M13399</guid>
      <dc:creator>juan_pablo</dc:creator>
      <dc:date>2020-04-15T13:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows of summarize ignores slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1027455#M13403</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Yes, that's the main recommendation they give in literature, but that approach only works when you have few dates in the model. In my case, almost all my data are dates, tables full of dates, so creating a date table per date column or dozens of inactive relationships makes the model confusing, the DAX complex and the visualization task time consuming. I really find useful the auto hierarchies Power BI creates automatically in each date.&lt;/P&gt;&lt;P&gt;If you know how to handle these scenarios where dates are the main data type on the model and still use a date table, would be very helpful if you could share with me the links or sources to learn about it.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 13:46:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1027455#M13403</guid>
      <dc:creator>juan_pablo</dc:creator>
      <dc:date>2020-04-15T13:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows of summarize ignores slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1027482#M13406</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81266" data-lia-user-login="juan_pablo" class="lia-mention lia-mention-user"&gt;juan_pablo&lt;/a&gt;&amp;nbsp; - I can't recreate it so it is difficult to know what is going wrong on your end. See attached PBIX file.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 14:00:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1027482#M13406</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-04-15T14:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows of summarize ignores slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1027500#M13410</link>
      <description>Truth be told, it could be that the auto-hierarchies are the real culprit. It's easy to check: create at least one proper calendar and connect to the column with the dates and slice by the calendar (hiding the column in the fact table). If it works OK, then you know where the issue is...&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Wed, 15 Apr 2020 14:10:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1027500#M13410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-15T14:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows of summarize ignores slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1047557#M14199</link>
      <description>&lt;P&gt;Hi everyone! specialiy&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the explanation to what is happening and has to do with the behavior of the custom visual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The behavior is not wrog, is just unexpected.&lt;/P&gt;&lt;P&gt;The custom visual "&lt;SPAN&gt;Timeline 2.1.1" (the one I'm using to filter the table) picks the date field and not the autohierarchy as built-in slicers do.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Take a look at the two imagens below which explain easily what is happening.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The Power BI slicer automatically&amp;nbsp;picks the autohierarchy and the custom visual does not:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Because the table visual is using the autohierarchy as row headers, the custom visual filter doesn't affects the table visual, only the measure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;for your file that guided me to make tests with the custom visual.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 16:59:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1047557#M14199</guid>
      <dc:creator>juan_pablo</dc:creator>
      <dc:date>2020-04-24T16:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Countrows of summarize ignores slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1047767#M14211</link>
      <description>Man, glad that one is solved, that was bugging me that I couldn't recreate it!!</description>
      <pubDate>Fri, 24 Apr 2020 19:37:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Countrows-of-summarize-ignores-slicer/m-p/1047767#M14211</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-04-24T19:37:47Z</dc:date>
    </item>
  </channel>
</rss>

