<?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: % not adding up when using YTD in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/not-adding-up-when-using-YTD/m-p/2174696#M50566</link>
    <description>&lt;P&gt;it still calculates the same value without the filter, i added the filter in the hope that was the issue as we only work on acedemic years and dont want to count non school days.&lt;/P&gt;&lt;P&gt;DimDates is marked as a date table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Nov 2021 12:10:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-11-05T12:10:37Z</dc:date>
    <item>
      <title>% not adding up when using YTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/not-adding-up-when-using-YTD/m-p/2174394#M50554</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two measures;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Att YTD2 = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Overall Att rate]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DATESYTD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'dimDates'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;filter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dimDates&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;dimDates[DateId]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Overall Att rate = &lt;/SPAN&gt;&lt;SPAN&gt;[Present Att]&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;[Total Session Count]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But they both report different results, I added the filter on the ATT YTD2 as I could see it was including everyday in the calendar and not taking into account weekends and holidays, does it still calculate over 365 days regardless?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;overall&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ATT YTD&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;Is there another way to calculate YTD or is there anything else to consider when using YTD?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Nov 2021 09:27:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/not-adding-up-when-using-YTD/m-p/2174394#M50554</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-05T09:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: % not adding up when using YTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/not-adding-up-when-using-YTD/m-p/2174622#M50561</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , YTD should be like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Att YTD2 = CALCULATE([Overall Att rate],DATESYTD('dimDates'[Date]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and dimDates should be marked as a date table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why Time Intelligence Fails - Power bi 5 Savior Steps for TI: &lt;A href="https://youtu.be/OBf0rjpp5Hw" target="_blank"&gt;https://youtu.be/OBf0rjpp5Hw&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 11:23:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/not-adding-up-when-using-YTD/m-p/2174622#M50561</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-11-05T11:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: % not adding up when using YTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/not-adding-up-when-using-YTD/m-p/2174696#M50566</link>
      <description>&lt;P&gt;it still calculates the same value without the filter, i added the filter in the hope that was the issue as we only work on acedemic years and dont want to count non school days.&lt;/P&gt;&lt;P&gt;DimDates is marked as a date table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 12:10:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/not-adding-up-when-using-YTD/m-p/2174696#M50566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-05T12:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: % not adding up when using YTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/not-adding-up-when-using-YTD/m-p/2177718#M50663</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;According to your description, you want dates not including weekends, here’s my solution.&lt;/P&gt;
&lt;P&gt;1.Create a new date table.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.Use the date table to calculate.&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;Or you are still confused about it, please provide me with a sample and the output you expect.&lt;/P&gt;
&lt;P&gt;About DATESYTD function, you can refer to the following blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdax%2Fdatesytd-function-dax&amp;amp;data=04%7C01%7Cv-yanjiang%40microsoft.com%7C02d27470669b4391b77508d9a29e2dfb%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637719622516416312%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=SL5n5bJFFrd8IAtccEwcndzVMog2f4Hz7wwWOugtbHI%3D&amp;amp;reserved=0" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/datesytd-function-dax&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 09:59:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/not-adding-up-when-using-YTD/m-p/2177718#M50663</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2021-11-08T09:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: % not adding up when using YTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/not-adding-up-when-using-YTD/m-p/2178266#M50673</link>
      <description>&lt;P&gt;The question is more around what is YTD doing to my measure?&lt;/P&gt;&lt;P&gt;my assumption was that YTD was including non school days,&amp;nbsp; weekends holidays etc and rounding the numbers over the extra days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have selected last year&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;When I put the overall measure in a line chart by month it reports the same calculation as the YTD measure.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 14:04:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/not-adding-up-when-using-YTD/m-p/2178266#M50673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-08T14:04:04Z</dc:date>
    </item>
  </channel>
</rss>

