<?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 ignoring applied filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-table-ignoring-applied-filters/m-p/2953896#M98054</link>
    <description>&lt;P&gt;I have a similar concept table in one of my reports.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2022 11:47:06 GMT</pubDate>
    <dc:creator>NanDeb</dc:creator>
    <dc:date>2022-12-07T11:47:06Z</dc:date>
    <item>
      <title>Calculated table ignoring applied filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-table-ignoring-applied-filters/m-p/2953763#M98043</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm facing an issue with the creation of a calculated table. I have two tables: a DimDate table and a table "DimWerknemer" containing employees including the dates they started and left the company.&lt;/P&gt;&lt;P&gt;The goal is to create a calculated table showing all employees that were active in the selected period of the DimDate table.&lt;/P&gt;&lt;P&gt;The DAX code below is giving a table containing all employees, it seems to be ignoring the applied filters on DimDate[Dag].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ActiveUsers = &lt;BR /&gt;&lt;BR /&gt;VAR MinDate = &lt;BR /&gt;CALCULATE(MIN('DimDate'[Dag]),KEEPFILTERS(DimDate))&lt;BR /&gt;&lt;BR /&gt;VAR MaxDate = &lt;BR /&gt;CALCULATE(MAX('DimDate'[Dag]),KEEPFILTERS(DimDate))&lt;BR /&gt; &lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATETABLE('DimWerknemer','DimWerknemer'[InDienstVanaf]&amp;lt;=MaxDate,'DimWerknemer'[InDienstTot]&amp;gt;=MinDate)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 10:33:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-table-ignoring-applied-filters/m-p/2953763#M98043</guid>
      <dc:creator>conjaean</dc:creator>
      <dc:date>2022-12-07T10:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated table ignoring applied filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-table-ignoring-applied-filters/m-p/2953851#M98048</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;calculated tables are calculated during refresh. There is no filter context during refresh, so your MinDate and MaxDate will always give the min and max date of the whole date table.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 11:21:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-table-ignoring-applied-filters/m-p/2953851#M98048</guid>
      <dc:creator>lukiz84</dc:creator>
      <dc:date>2022-12-07T11:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated table ignoring applied filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-table-ignoring-applied-filters/m-p/2953862#M98050</link>
      <description>&lt;P&gt;AMMENDED as I meant FILTER NOT SUMMARIZE&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ActiveUsers = 

VAR MinDate = 
CALCULATE(MIN('DimDate'[Dag]),KEEPFILTERS(DimDate))

VAR MaxDate = 
CALCULATE(MAX('DimDate'[Dag]),KEEPFILTERS(DimDate))
 
RETURN
FILTER('DimWerknemer','DimWerknemer'[InDienstVanaf]&amp;lt;=MaxDate,'DimWerknemer'[InDienstTot]&amp;gt;=MinDate)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 11:32:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-table-ignoring-applied-filters/m-p/2953862#M98050</guid>
      <dc:creator>NanDeb</dc:creator>
      <dc:date>2022-12-07T11:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated table ignoring applied filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-table-ignoring-applied-filters/m-p/2953896#M98054</link>
      <description>&lt;P&gt;I have a similar concept table in one of my reports.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 11:47:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-table-ignoring-applied-filters/m-p/2953896#M98054</guid>
      <dc:creator>NanDeb</dc:creator>
      <dc:date>2022-12-07T11:47:06Z</dc:date>
    </item>
  </channel>
</rss>

