<?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: Date filtering in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-filtering/m-p/2381797#M61579</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the attached file.&lt;/P&gt;
&lt;P&gt;I changed a relationship type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Name measure: = 
CALCULATE (
    SELECTEDVALUE ( data[name] ),
    FILTER ( data, data[date] &amp;lt; MAX ( 'Calendar'[date] ) )
)&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 08 Mar 2022 17:15:37 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2022-03-08T17:15:37Z</dc:date>
    <item>
      <title>Date filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-filtering/m-p/2379264#M61420</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm relatively new to Power Bi and was having trouble with implementing a date filter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The task is to have a date filter that only show data that falls before but NOT including the selcted date. The before feature in the fiter date widget shows values on the selected date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a DAX command that can overide the filter and exclude values on the selected date?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anything helps, thank you!!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 16:50:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-filtering/m-p/2379264#M61420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-07T16:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-filtering/m-p/2379387#M61428</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;I tried to create a sample pbix file.&lt;/P&gt;
&lt;P&gt;One of ways to solve this is to have disconnected calendar table.&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;LI-CODE lang="markup"&gt;Sales total: =
CALCULATE (
    SUM ( Data[Sales] ),
    FILTER ( 'Calendar', 'Calendar'[Date] &amp;lt; MAX ( 'Calendar slicer'[Date] ) )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 17:53:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-filtering/m-p/2379387#M61428</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-03-07T17:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-filtering/m-p/2379580#M61448</link>
      <description>&lt;P&gt;Thank you for your help!&lt;BR /&gt;I just had a query, for the "Sales Total:" DAX command, how would that be altered if there wasn't anything to sum up. For example, if the chart was composed of peoples' name, date of birth or other values that are unable to be summed?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 20:42:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-filtering/m-p/2379580#M61448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-07T20:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-filtering/m-p/2380195#M61475</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your feedback.&lt;/P&gt;
&lt;P&gt;I think you can use other function, instead of SUM, for instance, selectedvalue / min / max / and so forth.&lt;/P&gt;
&lt;P&gt;Please share your sample pbix file, and then more accurate solution can be written.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 04:07:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-filtering/m-p/2380195#M61475</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-03-08T04:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-filtering/m-p/2381761#M61578</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached a sample file. I am having trouble replicating the solution you made.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate the help, let me know if you have trouble accessing anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1gNgU38EX6l7EDIuCryQm9bVyBxobe-Z8/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1gNgU38EX6l7EDIuCryQm9bVyBxobe-Z8/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 16:57:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-filtering/m-p/2381761#M61578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-08T16:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-filtering/m-p/2381797#M61579</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the attached file.&lt;/P&gt;
&lt;P&gt;I changed a relationship type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Name measure: = 
CALCULATE (
    SELECTEDVALUE ( data[name] ),
    FILTER ( data, data[date] &amp;lt; MAX ( 'Calendar'[date] ) )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Mar 2022 17:15:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-filtering/m-p/2381797#M61579</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-03-08T17:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Date filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-filtering/m-p/2418594#M63948</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was wondering how I would alter this measure to exclude the people who leave (have a status of -1) but include everyone with a status of 1 and only show the people before but not including the selected date?&lt;BR /&gt;I attached a sample power bi file.&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/1gyRlYRIZ0KckVOvFBFm6s2tGEq8MvpHM/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1gyRlYRIZ0KckVOvFBFm6s2tGEq8MvpHM/view?usp=sharing&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 18:14:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-filtering/m-p/2418594#M63948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-25T18:14:47Z</dc:date>
    </item>
  </channel>
</rss>

