<?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 DAX code to aggregate values of time stamps in one fact table based on time window in another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2893022#M93957</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Being a newbie struck in code for using two fact tables.&lt;/P&gt;&lt;P&gt;Have two fact tables and one dim table linked with common column Meter_ID.&lt;/P&gt;&lt;P&gt;Objective - Aggregate values against each time stamp of one fact table based on the date and time window(Between start time and end time)&amp;nbsp; in another fact table for each Meter_ID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"tm_periodflow_instants" table has Time stamp and Dates separately along with the values which need to be aggregated based on "Date" ,"Start Time" ,"End Time" of another fact table "Prod_data_from_software".&lt;BR /&gt;I could not complete the DAX formula for the measure&amp;nbsp; which i started as below as related was not bringing the other fact table columns for filtering.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Energy Values = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tm_periodflow_instants&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;tm_periodflow_instants&lt;/SPAN&gt;&lt;SPAN&gt;[Value]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tm_periodflow_instants&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;tm_periodflow_instants&lt;/SPAN&gt;&lt;SPAN&gt;[Time]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;RELATED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;P&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Deeply appreciate your support to complete the code&amp;nbsp;&lt;BR /&gt;(For some reasons could not upload the data model&amp;nbsp; images in the forum after repeated attempts)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 08 Nov 2022 16:49:09 GMT</pubDate>
    <dc:creator>InsHunter</dc:creator>
    <dc:date>2022-11-08T16:49:09Z</dc:date>
    <item>
      <title>DAX code to aggregate values of time stamps in one fact table based on time window in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2893022#M93957</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Being a newbie struck in code for using two fact tables.&lt;/P&gt;&lt;P&gt;Have two fact tables and one dim table linked with common column Meter_ID.&lt;/P&gt;&lt;P&gt;Objective - Aggregate values against each time stamp of one fact table based on the date and time window(Between start time and end time)&amp;nbsp; in another fact table for each Meter_ID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"tm_periodflow_instants" table has Time stamp and Dates separately along with the values which need to be aggregated based on "Date" ,"Start Time" ,"End Time" of another fact table "Prod_data_from_software".&lt;BR /&gt;I could not complete the DAX formula for the measure&amp;nbsp; which i started as below as related was not bringing the other fact table columns for filtering.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Energy Values = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tm_periodflow_instants&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;tm_periodflow_instants&lt;/SPAN&gt;&lt;SPAN&gt;[Value]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tm_periodflow_instants&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;tm_periodflow_instants&lt;/SPAN&gt;&lt;SPAN&gt;[Time]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;RELATED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;P&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Deeply appreciate your support to complete the code&amp;nbsp;&lt;BR /&gt;(For some reasons could not upload the data model&amp;nbsp; images in the forum after repeated attempts)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Nov 2022 16:49:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2893022#M93957</guid>
      <dc:creator>InsHunter</dc:creator>
      <dc:date>2022-11-08T16:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: DAX code to aggregate values of time stamps in one fact table based on time window in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2893030#M93958</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Each machine has the below data of times along with dates batch wise.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Value need to be aggregated based on the respective time stamps falling in the above window.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 16:58:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2893030#M93958</guid>
      <dc:creator>InsHunter</dc:creator>
      <dc:date>2022-11-08T16:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: DAX code to aggregate values of time stamps in one fact table based on time window in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2893136#M93972</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="445637" data-lia-user-login="InsHunter" class="lia-mention lia-mention-user"&gt;InsHunter&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Energy Values =
SUMX (
    Prod_data_from_software,
    VAR CurrentDate = Prod_data_from_software[Date]
    VAR InstantsTable =
        CALCULATETABLE (
            tm_periodflow_instants,
            CROSSFILTER ( Prod_data_from_software[Meter_ID], 'Meter List'[Meter_ID], BOTH )
        )
    VAR FilteredInstantsTable =
        FILTER (
            InstantsTable,
            tm_periodflow_instants[Date] = CurrentDate
                &amp;amp;&amp;amp; tm_periodflow_instants[Time] &amp;lt;= Prod_data_from_software[End Time]
                &amp;amp;&amp;amp; tm_periodflow_instants[Time] &amp;gt;= Prod_data_from_software[Start Time]
        )
    RETURN
        SUMX ( FilteredInstantsTable, tm_periodflow_instants[Value] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 17:41:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2893136#M93972</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-11-08T17:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: DAX code to aggregate values of time stamps in one fact table based on time window in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2894026#M94014</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; Thanks . That was an immense help for me.God bless you. I think i need the date level granularity in both "Start Time" and "End Time" in my "Prod_data_from_software" table to get more accurate values when a batch on a machine is transcending the midnight. Hope in that case i need to remove the stand alone date in the filter of variable "FilterInstantsTable"&amp;nbsp; and bring it to the time .right?&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 02:17:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2894026#M94014</guid>
      <dc:creator>InsHunter</dc:creator>
      <dc:date>2022-11-09T02:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: DAX code to aggregate values of time stamps in one fact table based on time window in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2894152#M94027</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="445637" data-lia-user-login="InsHunter" class="lia-mention lia-mention-user"&gt;InsHunter&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes. On this case DateTime shall be required in both tables (the three Time columns)&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 03:12:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2894152#M94027</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-11-09T03:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: DAX code to aggregate values of time stamps in one fact table based on time window in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2894193#M94029</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; Thank you very much.&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 03:41:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2894193#M94029</guid>
      <dc:creator>InsHunter</dc:creator>
      <dc:date>2022-11-09T03:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: DAX code to aggregate values of time stamps in one fact table based on time window in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2895073#M94074</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; Hi.Sorry to bother u again. Since my&amp;nbsp;&lt;SPAN&gt;"Prod_data_from_software" table&amp;nbsp;&lt;/SPAN&gt; had the time granularity in secs i rouned down to minutes to match with my "tm_periodflow_instants" table which is having the time stamp in minutes accepting some&amp;nbsp; compromise. As date in&amp;nbsp; "Prod_data_from_software" is end date ,start date was derived based on the time stamps and minutes field for dax purpose. I modified dax as below.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Energy Values = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Prod_data_from_software&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;StartDate&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Prod_data_from_software&lt;/SPAN&gt;&lt;SPAN&gt;[Start Date]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;EndDate&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Prod_data_from_software&lt;/SPAN&gt;&lt;SPAN&gt;[End Date]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;InstantsTable&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATETABLE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;tm_periodflow_instants&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CROSSFILTER&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;Prod_data_from_software&lt;/SPAN&gt;&lt;SPAN&gt;[Meter_ID]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Meter List'&lt;/SPAN&gt;&lt;SPAN&gt;[Meter_ID]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;BOTH&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;FilteredInstantsTable&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;InstantsTable&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;tm_periodflow_instants&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;EndDate&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;tm_periodflow_instants&lt;/SPAN&gt;&lt;SPAN&gt;[Time]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;Prod_data_from_software&lt;/SPAN&gt;&lt;SPAN&gt;[Rounded End Time]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;tm_periodflow_instants&lt;/SPAN&gt;&lt;SPAN&gt;[Time]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;Prod_data_from_software&lt;/SPAN&gt;&lt;SPAN&gt;[Rounded Start Time]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;tm_periodflow_instants&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;StartDate&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;FilteredInstantsTable&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;tm_periodflow_instants&lt;/SPAN&gt;&lt;SPAN&gt;[Value]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;.But unfortunately not getting the values of batches crossing midnight.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Your help will be of great support for me. Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 10:24:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2895073#M94074</guid>
      <dc:creator>InsHunter</dc:creator>
      <dc:date>2022-11-09T10:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: DAX code to aggregate values of time stamps in one fact table based on time window in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2895612#M94114</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="445637" data-lia-user-login="InsHunter" class="lia-mention lia-mention-user"&gt;InsHunter&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;VAR FilteredInstantsTable =
    FILTER (
        InstantsTable,
        tm_periodflow_instants[Time] &amp;lt;= Prod_data_from_software[Rounded End Time]
            &amp;amp;&amp;amp; tm_periodflow_instants[Time] &amp;gt;= Prod_data_from_software[Rounded Start Time]
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 09 Nov 2022 14:48:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2895612#M94114</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-11-09T14:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: DAX code to aggregate values of time stamps in one fact table based on time window in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2896446#M94192</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; Thank you very much. I combined date and time in both data sets and used for the filter with start date as initial filter .Then it worked.It was a great help.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 01:28:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-aggregate-values-of-time-stamps-in-one-fact-table/m-p/2896446#M94192</guid>
      <dc:creator>InsHunter</dc:creator>
      <dc:date>2022-11-10T01:28:27Z</dc:date>
    </item>
  </channel>
</rss>

