<?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: Calculated Table Filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2236564#M53441</link>
    <description>&lt;P&gt;In what way is it not working? Is the number too high or too low?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Dec 2021 21:57:58 GMT</pubDate>
    <dc:creator>bcdobbs</dc:creator>
    <dc:date>2021-12-13T21:57:58Z</dc:date>
    <item>
      <title>Calculated Table Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2236408#M53424</link>
      <description>&lt;P&gt;I'm working on creating calculated table that looks like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZECOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CustomerID[Guarantor]&lt;/SPAN&gt;&lt;SPAN&gt;, CustomerID&lt;/SPAN&gt;&lt;SPAN&gt;[Name]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Apts&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Apts[AptDate]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;()),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"# In Family "&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(CustomerID&lt;/SPAN&gt;&lt;SPAN&gt;[PatNum]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(CustomerID&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Clearing the filter with "ALL" for "# In Family" isn't working though. How can I do this?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Dec 2021 19:25:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2236408#M53424</guid>
      <dc:creator>czuniga</dc:creator>
      <dc:date>2021-12-13T19:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Table Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2236439#M53426</link>
      <description>&lt;P&gt;Can you send a screen shot of your model (the relationship between CustomerID and Apts.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 19:49:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2236439#M53426</guid>
      <dc:creator>bcdobbs</dc:creator>
      <dc:date>2021-12-13T19:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Table Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2236546#M53439</link>
      <description>&lt;P&gt;It's really sensitive data, but both CustomerID and Apts have the same&amp;nbsp;&lt;SPAN&gt;CustomerID&lt;/SPAN&gt;&lt;SPAN&gt;[PatNum] field and are related one to many&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 21:35:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2236546#M53439</guid>
      <dc:creator>czuniga</dc:creator>
      <dc:date>2021-12-13T21:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Table Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2236564#M53441</link>
      <description>&lt;P&gt;In what way is it not working? Is the number too high or too low?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 21:57:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2236564#M53441</guid>
      <dc:creator>bcdobbs</dc:creator>
      <dc:date>2021-12-13T21:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Table Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2236571#M53442</link>
      <description>&lt;P&gt;The other columns have the filter applied and therefore the number is too low. I want the filter to apply to just the&amp;nbsp;&lt;SPAN&gt;CustomerID[Guarantor]&lt;/SPAN&gt;&lt;SPAN&gt;, CustomerID&lt;/SPAN&gt;&lt;SPAN&gt;[Name] columns and aggregate the rest without being limited to the date filter.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 22:08:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2236571#M53442</guid>
      <dc:creator>czuniga</dc:creator>
      <dc:date>2021-12-13T22:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Table Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2236580#M53443</link>
      <description>&lt;P&gt;I think I might have to build an example for myself in morning. Can't quite picture it!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What happens if instead of ALL(CustomerId) you try ALL(&lt;SPAN&gt;Apts[AptDate]).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 22:14:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2236580#M53443</guid>
      <dc:creator>bcdobbs</dc:creator>
      <dc:date>2021-12-13T22:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Table Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2236628#M53445</link>
      <description>&lt;P&gt;I thought that could be the solution! Unfortunately, it didn't change anything. I don't get an error message, but it's the exact same result as not having ALL(Apts[AptDate])&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 22:52:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2236628#M53445</guid>
      <dc:creator>czuniga</dc:creator>
      <dc:date>2021-12-13T22:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Table Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2236642#M53446</link>
      <description>&lt;P&gt;Decided to build a demo... Is this reflective of your setup?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basic Apts Data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Basic CustomerId Data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this setup if I create a calculated table with your code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NewTable = 
    SUMMARIZECOLUMNS(
        CustomerID[Gaurantor], 
        CustomerID[Name], 
        FILTER(Apts, Apts[Date] = TODAY()),
        "# In Family ", CALCULATE(
                            COUNT(CustomerID[PatNum]), 
                            ALL(CustomerId)
                        )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It gives back&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;which is a count of every row in the CustomerId table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wondered if you have a bidirectional relationship in your model? As if I switch it to that I get only count for that day.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also are you definently wanting to count the number of id's in CustomerId summarised by Gauarntor and Name? Won't that always be 1? Do you actually want the number of related Ids in the Apt table with the date filter removed? In which case:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NewTable = 
    SUMMARIZECOLUMNS(
        CustomerID[Gaurantor], 
        CustomerID[Name], 
        FILTER(Apts, Apts[Date] = TODAY()),
        "# In Family ", CALCULATE(
                            COUNT(Apts[PatNum]),
                            REMOVEFILTERS( Apts[Date] )
                        )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I'm totally missing the point can you illustrate with a very simple demo pbix file or download and modify&amp;nbsp;&lt;A href="https://dobbsfamily-my.sharepoint.com/:u:/g/personal/ben_dobbs_me_uk/ERR1Uvi_azhBu5FQOqBRMc4Bm3P-k6VZPgdnS5XUk0I7RQ?e=Y2KlIu" target="_self"&gt;Sample File&lt;/A&gt;&amp;nbsp;and mock up expected output in excel?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 23:02:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2236642#M53446</guid>
      <dc:creator>bcdobbs</dc:creator>
      <dc:date>2021-12-13T23:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Table Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2238344#M53531</link>
      <description>&lt;P&gt;This worked. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 15:10:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Table-Filters/m-p/2238344#M53531</guid>
      <dc:creator>czuniga</dc:creator>
      <dc:date>2021-12-14T15:10:34Z</dc:date>
    </item>
  </channel>
</rss>

