<?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 Daily Target in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2493858#M68751</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="369336" data-lia-user-login="renlaforest" class="lia-mention lia-mention-user"&gt;renlaforest&lt;/a&gt;&amp;nbsp;Basically a Running Total measure (there is a Quick Measure for this) but in column form:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ENTargetToDate column =
  VAR __Project = 'Table'[Project] //assumes you have a project column in your tracking table
  VAR __DailyENTarget = MAXX(FILTER('Projects',[Project] = __Project),[DailyENTarget)
  VAR __Date = [Date]
  VAR __Days = COUNTROWS(FILTER(ALL('Table'),[Date] &amp;lt;= __Date))
RETURN
  __Days * __DailyENTarget

  &lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 04 May 2022 15:31:19 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-05-04T15:31:19Z</dc:date>
    <item>
      <title>Cumulative Daily Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2493813#M68747</link>
      <description>&lt;P&gt;Hi - It's embarassing how many hours I've spent trying to figure this out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Data Model has a table called Project Setup with project in each row. Each project has a column called Start Date, Close Date, Total Days (close day -start date)+1, and DailyENTarget - the target is different for each project on the list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My table has the daily target listed - this project has a target of 3288 (about 235 per day) and closes on May 11th:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The dates are based on a table/column called EnumDates[Date] which has a relationship with the other table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like the ENTargetToDate column to show the cumulative target for each day based on the target that's in the data model table and grows incrementaly each day. I have not been able to figure out how to accomplish this.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 15:07:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2493813#M68747</guid>
      <dc:creator>renlaforest</dc:creator>
      <dc:date>2022-05-04T15:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Daily Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2493858#M68751</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="369336" data-lia-user-login="renlaforest" class="lia-mention lia-mention-user"&gt;renlaforest&lt;/a&gt;&amp;nbsp;Basically a Running Total measure (there is a Quick Measure for this) but in column form:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ENTargetToDate column =
  VAR __Project = 'Table'[Project] //assumes you have a project column in your tracking table
  VAR __DailyENTarget = MAXX(FILTER('Projects',[Project] = __Project),[DailyENTarget)
  VAR __Date = [Date]
  VAR __Days = COUNTROWS(FILTER(ALL('Table'),[Date] &amp;lt;= __Date))
RETURN
  __Days * __DailyENTarget

  &lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 May 2022 15:31:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2493858#M68751</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-05-04T15:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Daily Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2494028#M68761</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;Thank you! I'm down to just one issue (I think):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 16:27:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2494028#M68761</guid>
      <dc:creator>renlaforest</dc:creator>
      <dc:date>2022-05-04T16:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Daily Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2494152#M68768</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="369336" data-lia-user-login="renlaforest" class="lia-mention lia-mention-user"&gt;renlaforest&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you may try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;ENTargetToDate =
VAR CrrentDate =
    MAX ( EnumDates[Date] )
RETURN
    CALCULATE (
        SUM ( 'ProjectSetup'[DailyENTarget] ),
        ALLEXCEPT ( 'ProjectSetup', 'ProjectSetup'[ProjectName] ),
        FILTER ( EnumDates, EnumDates[Date] &amp;gt;= CrrentDate )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 18:16:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2494152#M68768</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-04T18:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Daily Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2494208#M68772</link>
      <description>&lt;P&gt;Hi &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; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you - I'm still ending up with the same result. I really appreciate your help:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 18:59:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2494208#M68772</guid>
      <dc:creator>renlaforest</dc:creator>
      <dc:date>2022-05-04T18:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Daily Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2494228#M68773</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="369336" data-lia-user-login="renlaforest" class="lia-mention lia-mention-user"&gt;renlaforest&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess I missed something&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;ENTargetToDate =
VAR CrrentDate =
    MAX ( EnumDates[Date] )
RETURN
    CALCULATE (
        SUM ( 'ProjectSetup'[DailyENTarget] ),
        ALLEXCEPT ( 'ProjectSetup', 'ProjectSetup'[ProjectName] ),
        REMOVEFILTERS ( EnumDates ),
        FILTER ( EnumDates, EnumDates[Date] &amp;gt;= CrrentDate )
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 May 2022 19:15:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2494228#M68773</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-04T19:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Daily Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496150#M68870</link>
      <description>&lt;P&gt;Thank you &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; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I still get the same result.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 13:22:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496150#M68870</guid>
      <dc:creator>renlaforest</dc:creator>
      <dc:date>2022-05-05T13:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Daily Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496163#M68873</link>
      <description>&lt;P&gt;Can you please share a sample file?&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 13:29:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496163#M68873</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-05T13:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Daily Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496170#M68874</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="369336" data-lia-user-login="renlaforest" class="lia-mention lia-mention-user"&gt;renlaforest&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try this just to see what results you get&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;ENTargetToDate =
VAR CrrentDate =
    MAX ( EnumDates[Date] )
RETURN
    CALCULATE (
        SUM ( 'ProjectSetup'[DailyENTarget] ),
        REMOVEFILTERS (),
        EnumDates[Date] &amp;lt;= CrrentDate
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 May 2022 13:33:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496170#M68874</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-05T13:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Daily Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496180#M68875</link>
      <description>&lt;P&gt;Hi &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; ,&lt;/P&gt;&lt;P&gt;It's now showing the total for 6 days (6*235) - although there are 7 days listed:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 13:36:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496180#M68875</guid>
      <dc:creator>renlaforest</dc:creator>
      <dc:date>2022-05-05T13:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Daily Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496193#M68876</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="369336" data-lia-user-login="renlaforest" class="lia-mention lia-mention-user"&gt;renlaforest&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Ok Then try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;ENTargetToDate =
VAR CrrentDate =
    MAX ( EnumDates[Date] )
RETURN
    CALCULATE (
        SUM ( 'ProjectSetup'[DailyENTarget] ),
        REMOVEFILTERS (),
        VALUES ( EnumDates[Date] )
        EnumDates[Date] &amp;lt;= CrrentDate
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 May 2022 13:40:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496193#M68876</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-05T13:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Daily Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496221#M68877</link>
      <description>&lt;P&gt;Hi&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; - there's an issue with the last EnumDates[Date]&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 13:49:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496221#M68877</guid>
      <dc:creator>renlaforest</dc:creator>
      <dc:date>2022-05-05T13:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Daily Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496235#M68879</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; - I thought there may be a missing comma, so I added this one, which resulted in:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 13:53:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496235#M68879</guid>
      <dc:creator>renlaforest</dc:creator>
      <dc:date>2022-05-05T13:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Daily Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496257#M68882</link>
      <description>&lt;LI-CODE lang="javascript"&gt;ENTargetToDate =
VAR CrrentDate =
    MAX ( EnumDates[Date] )
RETURN
    CALCULATE (
        SUM ( 'ProjectSetup'[DailyENTarget] ),
        REMOVEFILTERS (),
        VALUES ( EnumDates[Date] ),
        EnumDates[Date] &amp;lt;= CrrentDate
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 May 2022 14:01:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496257#M68882</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-05T14:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Daily Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496627#M68909</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;, here is the result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your help with this.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 16:42:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496627#M68909</guid>
      <dc:creator>renlaforest</dc:creator>
      <dc:date>2022-05-05T16:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Daily Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496631#M68910</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="369336" data-lia-user-login="renlaforest" class="lia-mention lia-mention-user"&gt;renlaforest&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you can share sample file?&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 16:44:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496631#M68910</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-05T16:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Daily Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496949#M68926</link>
      <description>&lt;P&gt;Hi &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; - sorry it took so long. I think this should work.&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1h24vWpK5mREvPzG1bDXkN94h_5s6qQlX/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1h24vWpK5mREvPzG1bDXkN94h_5s6qQlX/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 19:59:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2496949#M68926</guid>
      <dc:creator>renlaforest</dc:creator>
      <dc:date>2022-05-05T19:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Daily Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2497484#M68947</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="369336" data-lia-user-login="renlaforest" class="lia-mention lia-mention-user"&gt;renlaforest&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Here is the sample file with the solution&amp;nbsp;&lt;A href="https://we.tl/t-pHo4kYyRle" target="_blank"&gt;https://we.tl/t-pHo4kYyRle&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;ENTargetToDate = 
VAR CrrentDate = MAX ( EnumDates[Date] )
VAR FirstDateInFilter = CALCULATE ( MIN ( EnumDates[Date] ), ALLSELECTED () )
VAR NumberOfDays = DATEDIFF ( FirstDateInFilter, CrrentDate, DAY ) + 1
VAR ProjectTarget = SELECTEDVALUE ( 'ProjectSetup'[DailyENTarget] )
RETURN
    ProjectTarget * NumberOfDays&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 04:11:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Daily-Target/m-p/2497484#M68947</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-06T04:11:48Z</dc:date>
    </item>
  </channel>
</rss>

