<?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 Weird date filter behaviour in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weird-date-filter-behaviour/m-p/4030692#M159378</link>
    <description>&lt;P&gt;I have a table which works out time values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having issues when filtering it based on date, instead of hiding the irrelevant records it shows ::&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The column with the time, is using an expression to workout the time in hours minutes and seconds, it uses the lenght column (Duration format, set to show total seconds).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached screenshots to help make it clearer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DAX on Length calc column&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The table with the issue.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am doing the exact same thing on another table and it works perfectly, not sure why this is happening.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2024 16:02:20 GMT</pubDate>
    <dc:creator>Lakka00</dc:creator>
    <dc:date>2024-07-08T16:02:20Z</dc:date>
    <item>
      <title>Weird date filter behaviour</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weird-date-filter-behaviour/m-p/4030692#M159378</link>
      <description>&lt;P&gt;I have a table which works out time values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having issues when filtering it based on date, instead of hiding the irrelevant records it shows ::&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The column with the time, is using an expression to workout the time in hours minutes and seconds, it uses the lenght column (Duration format, set to show total seconds).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached screenshots to help make it clearer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DAX on Length calc column&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The table with the issue.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am doing the exact same thing on another table and it works perfectly, not sure why this is happening.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 16:02:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weird-date-filter-behaviour/m-p/4030692#M159378</guid>
      <dc:creator>Lakka00</dc:creator>
      <dc:date>2024-07-08T16:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Weird date filter behaviour</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weird-date-filter-behaviour/m-p/4030712#M159379</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="684537" data-lia-user-login="Lakka00" class="lia-mention lia-mention-user"&gt;Lakka00&lt;/a&gt;&amp;nbsp;, and thank you for sharing a question with the forum.&amp;nbsp; The following is informational.&amp;nbsp; Please&amp;nbsp;remember to adhere to the decorum of the Community Forum when asking a question.&lt;BR /&gt;&lt;BR /&gt;Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot). You can upload the PBIX file to a cloud storage service such as OneDrive, Google Drive, Dropbox, or to a Github repository, and then share a file’s URL.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: darkblue;"&gt;&lt;EM&gt;If your requirement is solved, please make THIS ANSWER a SOLUTION &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;EM&gt; and help other users find the solution quickly. Please hit the LIKE &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;EM&gt; button if this comment helps you.&amp;nbsp; Proud to be a Super User!&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 16:12:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weird-date-filter-behaviour/m-p/4030712#M159379</guid>
      <dc:creator>foodd</dc:creator>
      <dc:date>2024-07-08T16:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Weird date filter behaviour</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weird-date-filter-behaviour/m-p/4031709#M159453</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="684537" data-lia-user-login="Lakka00" class="lia-mention lia-mention-user"&gt;Lakka00&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In my&amp;nbsp;speculate, there must be some some&amp;nbsp;formatting issue with your [Length] column.&lt;/P&gt;
&lt;P&gt;Please try this measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _len = VALUE(SELECTEDVALUE('Table'[Column1]))
VAR _hour = INT(_len/3600)
VAR _minute = INT(MOD(_len,3600)/60)
VAR _second = MOD(_len,60)
RETURN FORMAT(_hour,"00")&amp;amp;":"&amp;amp;FORMAT(_minute,"00")&amp;amp;":"&amp;amp;FORMAT(_second,"00")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Zhengdong Xu&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 05:45:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weird-date-filter-behaviour/m-p/4031709#M159453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-09T05:45:50Z</dc:date>
    </item>
  </channel>
</rss>

