<?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: Totalytd with extra filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Totalytd-with-extra-filter/m-p/1372481#M25025</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , you can try datesytd too&lt;/P&gt;
&lt;P&gt;YTD Budget test = calculate([Budget], datesytd('Date'[Date]), FILTER(Budgetfile, Budgetfile[cat] ="budget x"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;examples&lt;/P&gt;
&lt;P&gt;YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))&lt;BR /&gt;Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2020 15:12:43 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-09-15T15:12:43Z</dc:date>
    <item>
      <title>Totalytd with extra filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Totalytd-with-extra-filter/m-p/1371874#M25012</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to make a DAX formula for the TOTALYTD and a filter option. The standard formula is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;YTD Budget test = TOTALYTD([Budget], 'Date'[Date])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This gives the correct cummulative values per period.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The next formula I want to make a selection of a specific budget&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;YTD Budget test = TOTALYTD([Budget], 'Date'[Date], FILTER(Budgetfile, Budgetfile[cat] ="budget x"))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Now I get the the values per period for this budget instead of cummalive values.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;What do I wrong?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Sep 2020 12:23:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Totalytd-with-extra-filter/m-p/1371874#M25012</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-15T12:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Totalytd with extra filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Totalytd-with-extra-filter/m-p/1371886#M25013</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Maybe try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;YTD Budget test = CALCULATE(TOTALYTD([Budget], 'Date'[Date]), FILTER(Budgetfile, Budgetfile[cat] ="budget x"))&lt;/LI-CODE&gt;
&lt;P&gt;You may find this helpful - &lt;A href="https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008&amp;nbsp;" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 12:33:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Totalytd-with-extra-filter/m-p/1371886#M25013</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-15T12:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Totalytd with extra filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Totalytd-with-extra-filter/m-p/1372481#M25025</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , you can try datesytd too&lt;/P&gt;
&lt;P&gt;YTD Budget test = calculate([Budget], datesytd('Date'[Date]), FILTER(Budgetfile, Budgetfile[cat] ="budget x"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;examples&lt;/P&gt;
&lt;P&gt;YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))&lt;BR /&gt;Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 15:12:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Totalytd-with-extra-filter/m-p/1372481#M25025</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-15T15:12:43Z</dc:date>
    </item>
  </channel>
</rss>

