<?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: DAX remove filter and show missing record in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-remove-filter-and-show-missing-record/m-p/2116732#M48497</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150936" data-lia-user-login="PaulOlding" class="lia-mention lia-mention-user"&gt;PaulOlding&lt;/a&gt;, this solves the issue indeed.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Oct 2021 15:34:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-10-05T15:34:51Z</dc:date>
    <item>
      <title>DAX remove filter and show missing record</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-remove-filter-and-show-missing-record/m-p/2116004#M48472</link>
      <description>&lt;P&gt;Let me start with setting the setup of my model and data. Needless to say, this is a fictional modal, but it simulates the problem I am having in my actual PBI report. My actual report is based on a published dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Model&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date dimension&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PartyAnimal dimension&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PartyRegistration fact&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below a mockup of the expected result of the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected result of report&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The report has two slicers: on Month (of the Date dimension) and on BirthYear (of the PartyAnimal dimension).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to display two tables in the report. The first shows the names of the party animals and their fees. The table is filtered by the slicers, so it only shows the party animals that have registered in the selected month and of the selected birth year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second table should display all party animals that have registered in the selected month, but should ignore the selected birth year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a DAX expression to use in the second table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;CALCULATE([TotalFee], REMOVEFILTERS(PartyAnimal[BirthYear]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This only gives me half of what I want. It does display the correct total, but it does not show the extra record. Below is the screenshot of the result of my report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actual result of report&lt;/STRONG&gt;&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;&lt;P&gt;&lt;STRONG&gt;My question&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Is there a DAX expression that allows me to remove the filter context of a slicer, but also show the missing record?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I know that in this simple example it is possible to get the desired result with &lt;U&gt;Edit Interactions&lt;/U&gt; to prevent the second table to interact with the BirthYear slicer. However, I would like to solve it with DAX to ensure reusability and because the original report is more complex.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Click&amp;nbsp;&lt;A title="Download PBIX" href="https://ufile.io/fhp4kp1d" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;to download the PBIX.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 12:00:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-remove-filter-and-show-missing-record/m-p/2116004#M48472</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-05T12:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: DAX remove filter and show missing record</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-remove-filter-and-show-missing-record/m-p/2116235#M48486</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;This is auto-exist in action.&amp;nbsp; As ever, sqlbi have a good article explaining what's happening:&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/understanding-dax-auto-exist/" target="_blank"&gt;https://www.sqlbi.com/articles/understanding-dax-auto-exist/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short, as Name and BirthYear are on the same table the engine does an optimization to not evaluate combinations that don't exist after the filter is applied.&lt;/P&gt;&lt;P&gt;The suggested workaround is to snowflake the dimension - ie to move BirthYear to a separate table.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;You would hide BirthYear in the PartyAnimal table and use BirthYear from the BirthYear table in your slicer and measure&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE([TotalFee], REMOVEFILTERS(BirthYear[BirthYear]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;That gets you your desired result.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 13:07:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-remove-filter-and-show-missing-record/m-p/2116235#M48486</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2021-10-05T13:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: DAX remove filter and show missing record</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-remove-filter-and-show-missing-record/m-p/2116732#M48497</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150936" data-lia-user-login="PaulOlding" class="lia-mention lia-mention-user"&gt;PaulOlding&lt;/a&gt;, this solves the issue indeed.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 15:34:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-remove-filter-and-show-missing-record/m-p/2116732#M48497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-05T15:34:51Z</dc:date>
    </item>
  </channel>
</rss>

