<?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: Adventure Works 2020 Model  - blank dates DAX filter context in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adventure-Works-2020-Model-blank-dates-DAX-filter-context/m-p/3738071#M145732</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="663860" data-lia-user-login="Uniqueusername" class="lia-mention lia-mention-user"&gt;Uniqueusername&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Watch this&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=23qemkDqMVY" target="_blank" rel="noopener"&gt;Why is there a blank in my Power BI slicer??? - YouTube&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As soon as you delete the two inactive relationships between date table and othe tables in model, blank row goes away. I am referring to the Adventureworks sample pbix file 2020.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Mar 2024 04:43:03 GMT</pubDate>
    <dc:creator>talespin</dc:creator>
    <dc:date>2024-03-03T04:43:03Z</dc:date>
    <item>
      <title>Adventure Works 2020 Model  - blank dates DAX filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adventure-Works-2020-Model-blank-dates-DAX-filter-context/m-p/3737960#M145728</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to understand more about filter contexts in DAX. For this, I have downloaded the Adventure 2020 model from this link &lt;A href="https://learn.microsoft.com/en-us/dax/dax-sample-model" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/dax/dax-sample-model&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I started with creating a a simple matrix visual with "Year" on the rows and a measure "&lt;STRONG&gt;Number of dates in range"&lt;/STRONG&gt; which calculates the maximum visible date in the values field&lt;BR /&gt;&lt;BR /&gt;When I do this I am seeing one row in the visual where the year is blank. I am trying to figure out what is causing this. I had a few sales related measures in the visual initally. First thought was there there could be sales in the sales table which do not have a corresponding "order date" in the date table. Removing those sales related measures didn't do anything as I can still see those blank values&lt;BR /&gt;&lt;BR /&gt;Hopefully, the screenshot below might help&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also added year slicer. Now this year slicer shows a blank value for some reason. I checked the date table but couldn't find anything&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the measure I created&lt;BR /&gt;&lt;BR /&gt;&lt;/P&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;LI-CODE lang="markup"&gt;Number of dates in range = 
VAR LastdateinContext =
   MAX('Date'[date])
VAR DatesinRange =
    FILTER ( 'Date', 'Date'[Date] &amp;lt;= LastdateinContext )
VAR AllDates =all('Date'[Year])

RETURN
    COUNTROWS(AllDates)&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;&lt;BR /&gt;I am sure I am missing something very obvious. But I'm just not able to figure out what that is. I looked at the model to check if there are any odd looking dates in the tables that should not be there but have not been able to find anything&lt;BR /&gt;&lt;BR /&gt;Any help will be much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2024 00:19:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adventure-Works-2020-Model-blank-dates-DAX-filter-context/m-p/3737960#M145728</guid>
      <dc:creator>Uniqueusername</dc:creator>
      <dc:date>2024-03-03T00:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adventure Works 2020 Model  - blank dates DAX filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adventure-Works-2020-Model-blank-dates-DAX-filter-context/m-p/3738071#M145732</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="663860" data-lia-user-login="Uniqueusername" class="lia-mention lia-mention-user"&gt;Uniqueusername&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Watch this&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=23qemkDqMVY" target="_blank" rel="noopener"&gt;Why is there a blank in my Power BI slicer??? - YouTube&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As soon as you delete the two inactive relationships between date table and othe tables in model, blank row goes away. I am referring to the Adventureworks sample pbix file 2020.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2024 04:43:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adventure-Works-2020-Model-blank-dates-DAX-filter-context/m-p/3738071#M145732</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-03-03T04:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adventure Works 2020 Model  - blank dates DAX filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adventure-Works-2020-Model-blank-dates-DAX-filter-context/m-p/3738456#M145749</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="678168" data-lia-user-login="talespin" class="lia-mention lia-mention-user"&gt;talespin&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for that ! Removing the inactive relationships fixed it. But I don't know what is driving that behaviour. I also tried to check for dirty data like in the video you have linked to but couldn't find anything standing out&lt;BR /&gt;&lt;BR /&gt;How would you avoid these blanks in a situation where you certainly require an inactive relationship ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2024 20:40:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adventure-Works-2020-Model-blank-dates-DAX-filter-context/m-p/3738456#M145749</guid>
      <dc:creator>Uniqueusername</dc:creator>
      <dc:date>2024-03-03T20:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adventure Works 2020 Model  - blank dates DAX filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adventure-Works-2020-Model-blank-dates-DAX-filter-context/m-p/3739328#M145784</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="663860" data-lia-user-login="Uniqueusername" class="lia-mention lia-mention-user"&gt;Uniqueusername&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case its a data issue, you should include blanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise you can just apply filter from filter panel to exclude blanks.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 08:11:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adventure-Works-2020-Model-blank-dates-DAX-filter-context/m-p/3739328#M145784</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-03-04T08:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adventure Works 2020 Model  - blank dates DAX filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adventure-Works-2020-Model-blank-dates-DAX-filter-context/m-p/3739489#M145795</link>
      <description>&lt;P&gt;I found the culprit. The shipdatekey in the Sales table has blanks. I didn't know inactive relationships on columns with blanks can cause blanks to appear like that&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 08:59:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adventure-Works-2020-Model-blank-dates-DAX-filter-context/m-p/3739489#M145795</guid>
      <dc:creator>Uniqueusername</dc:creator>
      <dc:date>2024-03-04T08:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adventure Works 2020 Model  - blank dates DAX filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adventure-Works-2020-Model-blank-dates-DAX-filter-context/m-p/3739523#M145798</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="663860" data-lia-user-login="Uniqueusername" class="lia-mention lia-mention-user"&gt;Uniqueusername&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its mentioned in the function details on &lt;A href="https://dax.guide/" target="_blank"&gt;DAXGuide&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 09:09:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adventure-Works-2020-Model-blank-dates-DAX-filter-context/m-p/3739523#M145798</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-03-04T09:09:35Z</dc:date>
    </item>
  </channel>
</rss>

