<?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: Custom YTD in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-YTD/m-p/2882458#M90331</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="465647" data-lia-user-login="HBALAMURUGAN" class="lia-mention lia-mention-user"&gt;HBALAMURUGAN&lt;/a&gt;&amp;nbsp;;&lt;/P&gt;
&lt;P&gt;You could create a measure as follow:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;TotalYTD1 = TOTALYTD(SUM(Invoices[Total]), Dates[Date], ALL(Dates), "06/30")&lt;/LI-CODE&gt;
&lt;P&gt;if you want to change other date, could modify&amp;nbsp; "6/30" to another date.&lt;/P&gt;
&lt;P&gt;or try to use EDATE() funtion.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/edate-function-dax" target="_blank"&gt;EDATE function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;measure =
CALCULATE ( SUM ( 'table'[value] ), EDATE ( 'table'[date], -12 ) )
&lt;/LI-CODE&gt;
&lt;P&gt;if not right, can you share a simple data and the result what you want to output?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yalan Wu&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2022 09:36:20 GMT</pubDate>
    <dc:creator>v-yalanwu-msft</dc:creator>
    <dc:date>2022-11-03T09:36:20Z</dc:date>
    <item>
      <title>Custom YTD</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-YTD/m-p/2879968#M90249</link>
      <description>&lt;P&gt;I want to create custom Year To date.&lt;BR /&gt;I am currently using the query Calculate(Sum(value),DATEADD(Date,-1,Year))&amp;nbsp; and this calculation is -365 days.&lt;/P&gt;&lt;P&gt;I want to give the start date as (Start of the date of the previous year )and end date as ((current day)-365) using my calendar lookup table for the above specified scenario.&lt;BR /&gt;Please help me with the query.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 11:36:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-YTD/m-p/2879968#M90249</guid>
      <dc:creator>HBALAMURUGAN</dc:creator>
      <dc:date>2022-11-02T11:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom YTD</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-YTD/m-p/2882458#M90331</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="465647" data-lia-user-login="HBALAMURUGAN" class="lia-mention lia-mention-user"&gt;HBALAMURUGAN&lt;/a&gt;&amp;nbsp;;&lt;/P&gt;
&lt;P&gt;You could create a measure as follow:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;TotalYTD1 = TOTALYTD(SUM(Invoices[Total]), Dates[Date], ALL(Dates), "06/30")&lt;/LI-CODE&gt;
&lt;P&gt;if you want to change other date, could modify&amp;nbsp; "6/30" to another date.&lt;/P&gt;
&lt;P&gt;or try to use EDATE() funtion.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/edate-function-dax" target="_blank"&gt;EDATE function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;measure =
CALCULATE ( SUM ( 'table'[value] ), EDATE ( 'table'[date], -12 ) )
&lt;/LI-CODE&gt;
&lt;P&gt;if not right, can you share a simple data and the result what you want to output?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yalan Wu&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 09:36:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-YTD/m-p/2882458#M90331</guid>
      <dc:creator>v-yalanwu-msft</dc:creator>
      <dc:date>2022-11-03T09:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Custom YTD</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-YTD/m-p/2894634#M91124</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="465647" data-lia-user-login="HBALAMURUGAN" class="lia-mention lia-mention-user"&gt;HBALAMURUGAN&lt;/a&gt;&amp;nbsp;;&lt;/P&gt;
&lt;P&gt;Is your problem solved?&amp;nbsp; If so, kindly mark the proper reply as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yalan Wu&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 07:34:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-YTD/m-p/2894634#M91124</guid>
      <dc:creator>v-yalanwu-msft</dc:creator>
      <dc:date>2022-11-09T07:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Custom YTD</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-YTD/m-p/2894680#M91130</link>
      <description>&lt;P&gt;The answer is helping me to specify the start date of the year to date.However, I need to also specvify the end date for the YTD. Looking forward to have your support in this regard.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 07:51:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-YTD/m-p/2894680#M91130</guid>
      <dc:creator>HBALAMURUGAN</dc:creator>
      <dc:date>2022-11-09T07:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom YTD</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-YTD/m-p/2894725#M91132</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="465647" data-lia-user-login="HBALAMURUGAN" class="lia-mention lia-mention-user"&gt;HBALAMURUGAN&lt;/a&gt;&amp;nbsp;;&lt;/P&gt;
&lt;P&gt;Can you give an example? I don't quite understand, could&amp;nbsp;&lt;SPAN&gt;provide some&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;sample data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;in your tables (&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;&lt;SPAN&gt;exclude&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;sensitive&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;I&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;) with&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Text&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;format and your&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;expected result&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;It is better&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;simplified&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;pbix file. You can refer the following link to upload the file to the community. Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-upload-PBI-in-Community/m-p/1672886" target="_blank"&gt;Solved: How to upload PBI in Community - Microsoft Power BI Community&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yalan Wu&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 08:12:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-YTD/m-p/2894725#M91132</guid>
      <dc:creator>v-yalanwu-msft</dc:creator>
      <dc:date>2022-11-09T08:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Custom YTD</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-YTD/m-p/2894744#M91133</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Calculate(Sum(value),DATESBETWEEN(Dates[Date],Date(Year(Today())-1,1,1),Today()-365))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 08:17:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-YTD/m-p/2894744#M91133</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2022-11-09T08:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Custom YTD</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Custom-YTD/m-p/2894777#M91135</link>
      <description>&lt;P&gt;Thank you very much for your response, This is working great.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 08:31:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Custom-YTD/m-p/2894777#M91135</guid>
      <dc:creator>HBALAMURUGAN</dc:creator>
      <dc:date>2022-11-09T08:31:22Z</dc:date>
    </item>
  </channel>
</rss>

