<?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: Time range for time column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-range-for-time-column/m-p/1490442#M28624</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="270211" data-lia-user-login="gustavjMC" class="lia-mention lia-mention-user"&gt;gustavjMC&lt;/a&gt; ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2020 13:19:47 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-11-12T13:19:47Z</dc:date>
    <item>
      <title>Time range for time column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-range-for-time-column/m-p/1489736#M28610</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a report where i want my graph to be dependent on a start and stop time from another table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In SQL my code would look something like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SELECT [Value]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,[logTime]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM database&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE logTime BETWEEN [startTime] AND [stopTime]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code in dax for creating a calculated column looks like this (or at least, this is what I want to achieve)&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Range = FILTER('Temp'[logTime], 'Temp'[logTime] &amp;gt; 'Wash'[startTime] AND 'Temp'[logTime] &amp;lt; 'Wash'[logTime])&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is there any possibility of doing this kind of calculated column where the start and stop time of the column is based on another table?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Nov 2020 11:04:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-range-for-time-column/m-p/1489736#M28610</guid>
      <dc:creator>gustavjMC</dc:creator>
      <dc:date>2020-11-12T11:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Time range for time column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-range-for-time-column/m-p/1490306#M28613</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="270211" data-lia-user-login="gustavjMC" class="lia-mention lia-mention-user"&gt;gustavjMC&lt;/a&gt; , This should have worked as a column in 'Temp' table &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Range = Countx(FILTER('Temp', 'Temp'[logTime] &amp;gt; 'Wash'[startTime] AND 'Temp'[logTime] &amp;lt; 'Wash'[logTime]), 'Temp'[logTime])&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer video for example -&lt;A href="https://www.youtube.com/watch?v=czNHt7UXIe8" target="_blank"&gt;https://www.youtube.com/watch?v=czNHt7UXIe8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 11:36:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-range-for-time-column/m-p/1490306#M28613</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-12T11:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Time range for time column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-range-for-time-column/m-p/1490345#M28618</link>
      <description>&lt;P&gt;Thanks for replying!&lt;/P&gt;&lt;P&gt;With this COUNTX function, it only counts the rows, but i want the actual rows in a table to be returned &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 12:04:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-range-for-time-column/m-p/1490345#M28618</guid>
      <dc:creator>gustavjMC</dc:creator>
      <dc:date>2020-11-12T12:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Time range for time column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-range-for-time-column/m-p/1490442#M28624</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="270211" data-lia-user-login="gustavjMC" class="lia-mention lia-mention-user"&gt;gustavjMC&lt;/a&gt; ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 13:19:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-range-for-time-column/m-p/1490442#M28624</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-12T13:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Time range for time column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-range-for-time-column/m-p/1541468#M30362</link>
      <description>&lt;P&gt;if by '&lt;SPAN&gt;&amp;nbsp;but i want the actual rows in a table to be returned' you actually mean that you want the total count of rows from the table that is returned after applying the FILTER(), then, if I am not mistaken, you need to effect a filter transition programmatically, and the only way to do this in DAX is not the FILTER() function, but CALCULATE and CALCULATETABLE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rather than copy/paste a whole chapter, read chapter 5 from the book: 'The Definitive Guide to DAX,' 2nd edition,&amp;nbsp; by Marco Russo and Alberto Ferrari.&amp;nbsp; It's all explained there better than I could.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 18:17:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-range-for-time-column/m-p/1541468#M30362</guid>
      <dc:creator>Element115</dc:creator>
      <dc:date>2020-12-09T18:17:52Z</dc:date>
    </item>
  </channel>
</rss>

