<?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: Cumulative Total with Dates Sliced by Separate Table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2522410#M70403</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&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;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This measure seems to work as intended. If anything else goes wrong, I'll try to share some test data with you.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your help!&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2022 07:21:30 GMT</pubDate>
    <dc:creator>MAVIE</dc:creator>
    <dc:date>2022-05-18T07:21:30Z</dc:date>
    <item>
      <title>Cumulative Total with Dates Sliced by Separate Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2518659#M70130</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I'm trying to build a dynamic cumulative totals measure, where the date dimension is able to be sliced by the data ranges from an iterations dimension.&amp;nbsp; The measure the I'm working off of is the following, which lets me slice the dates to get the correct results:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE (
    SUM ( FactTimeRegistrations[Hours] ),
    FILTER ( ALLSELECTED ( DimDate[Date] ) , DimDate[Date] &amp;lt;= MAX ( DimDate[Date] ) )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;However, I want to add an additional filter to be able to slice the date based off of the date range from a given iteration, but I have been unsuccessful so far.&amp;nbsp;&lt;BR /&gt;The three tables that the meassure would be using are these:&amp;nbsp;&lt;img /&gt;&lt;BR /&gt;Any help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 20:19:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2518659#M70130</guid>
      <dc:creator>MAVIE</dc:creator>
      <dc:date>2022-05-16T20:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total with Dates Sliced by Separate Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2519219#M70146</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="388699" data-lia-user-login="MAVIE" class="lia-mention lia-mention-user"&gt;MAVIE&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how does your report look like?&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 03:23:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2519219#M70146</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-17T03:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total with Dates Sliced by Separate Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2519242#M70147</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="388699" data-lia-user-login="MAVIE" class="lia-mention lia-mention-user"&gt;MAVIE&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;First create realtionship as follows&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Then use&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Hours RT =
VAR T1 =
    FILTER ( ALLSELECTED ( DimDate[Date] ), DimDate[Date] &amp;lt;= MAX ( DimDate[Date] ) )
VAR T2 =
    CALENDAR (
        RELATED ( DimIterations[StartDate] ),
        RELATED ( DimIterations[EndDate] )
    )
RETURN
    CALCULATE ( SUM ( FactTimeRegistrations[Hours] ), INTERSECT ( T1, T2 ) )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 17 May 2022 03:41:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2519242#M70147</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-17T03:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total with Dates Sliced by Separate Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2519676#M70182</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&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;&lt;BR /&gt;&lt;BR /&gt;I should have clarified the relationship. Iterations if connected to TimeRegistrations in this manner:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Also the chart that I'm creating looks as such, which has been sliced on the desired iteration. The issue then is that that have data point from before the iteration which should not be included in the calculation.&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 07:50:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2519676#M70182</guid>
      <dc:creator>MAVIE</dc:creator>
      <dc:date>2022-05-17T07:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total with Dates Sliced by Separate Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2519722#M70186</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="388699" data-lia-user-login="MAVIE" class="lia-mention lia-mention-user"&gt;MAVIE&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The same code above shall remain applicable. Please check and let me know which results you get. Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 07:57:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2519722#M70186</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-17T07:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total with Dates Sliced by Separate Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2519887#M70199</link>
      <description>&lt;P&gt;Using that measure I get the following error&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 08:52:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2519887#M70199</guid>
      <dc:creator>MAVIE</dc:creator>
      <dc:date>2022-05-17T08:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total with Dates Sliced by Separate Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2519941#M70202</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="388699" data-lia-user-login="MAVIE" class="lia-mention lia-mention-user"&gt;MAVIE&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please provide sample data to work with&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 09:11:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2519941#M70202</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-17T09:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total with Dates Sliced by Separate Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2522251#M70392</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="388699" data-lia-user-login="MAVIE" class="lia-mention lia-mention-user"&gt;MAVIE&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Hours RT =
VAR T1 =
    FILTER ( ALLSELECTED ( DimDate[Date] ), DimDate[Date] &amp;lt;= MAX ( DimDate[Date] ) )
VAR StartDate =
    MAXX ( FactTimeRegistrations, RELATED ( DimIterations[StartDate] ) )
VAR EndDate =
    MAXX ( FactTimeRegistrations, RELATED ( DimIterations[EndDate] ) )
VAR T2 =
    CALENDAR ( StartDate, EndDate )
RETURN
    CALCULATE ( SUM ( FactTimeRegistrations[Hours] ), INTERSECT ( T1, T2 ) )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 18 May 2022 06:25:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2522251#M70392</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-18T06:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total with Dates Sliced by Separate Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2522410#M70403</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&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;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This measure seems to work as intended. If anything else goes wrong, I'll try to share some test data with you.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 07:21:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-Dates-Sliced-by-Separate-Table/m-p/2522410#M70403</guid>
      <dc:creator>MAVIE</dc:creator>
      <dc:date>2022-05-18T07:21:30Z</dc:date>
    </item>
  </channel>
</rss>

