<?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: Calculating average value for a day of a month 1 year ago in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-1-year-ago/m-p/1336553#M23769</link>
    <description>&lt;P&gt;Thank you for your qucik reply&amp;nbsp;&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;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Now I tried the fomular you provided, but returned blank values on Table visiual.&lt;/P&gt;&lt;P&gt;What's wrong?&lt;/P&gt;</description>
    <pubDate>Mon, 31 Aug 2020 15:30:48 GMT</pubDate>
    <dc:creator>PbiCeo</dc:creator>
    <dc:date>2020-08-31T15:30:48Z</dc:date>
    <item>
      <title>Calculating average value for a day of a month 1 year ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-1-year-ago/m-p/1336502#M23767</link>
      <description>&lt;P&gt;Hello evryone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got correct average&amp;nbsp;value for a day of a month with this Measure:(same value for a whole month)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR tm = CALCULATE(SUM('table'[data]), FILTER(ALL('calendar'), 'calendar'date] &amp;lt;= 'calendar'[date]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE('tm', 'tabe'[NumberofDays], 0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;But I got worng&amp;nbsp;average value for a day of a month 1 year ago with below:(not same value for a whole month)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR tmly = CALCULATE(SUM('table'[data]), FILTER(ALL('calendar'), 'calendar'[date] &amp;lt;= 'calendar'[date]), FILTER('calendar', DATEADD('calendar'[date], -365, DAY)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE('tmly', ''tabe'[NumberofDays], 0)&lt;BR /&gt;&lt;BR /&gt;How should I correct the above syntax?&lt;BR /&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 31 Aug 2020 15:32:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-1-year-ago/m-p/1336502#M23767</guid>
      <dc:creator>PbiCeo</dc:creator>
      <dc:date>2020-08-31T15:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average value for a day of a month 1 year ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-1-year-ago/m-p/1336506#M23768</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="231641" data-lia-user-login="PbiCeo" class="lia-mention lia-mention-user"&gt;PbiCeo&lt;/a&gt;&amp;nbsp;- Perhaps this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR tm = CALCULATE(SUM('table'[data]), FILTER(ALL('calendar'), 'calendar'date] &amp;lt;= EOMONTH('calendar'[date],-12)))
return
DIVIDE('tm', 'tabe'[NumberofDays], 0)&lt;/LI-CODE&gt;
&lt;P&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 15:20:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-1-year-ago/m-p/1336506#M23768</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-08-31T15:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average value for a day of a month 1 year ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-1-year-ago/m-p/1336553#M23769</link>
      <description>&lt;P&gt;Thank you for your qucik reply&amp;nbsp;&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;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Now I tried the fomular you provided, but returned blank values on Table visiual.&lt;/P&gt;&lt;P&gt;What's wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 15:30:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-1-year-ago/m-p/1336553#M23769</guid>
      <dc:creator>PbiCeo</dc:creator>
      <dc:date>2020-08-31T15:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average value for a day of a month 1 year ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-1-year-ago/m-p/1336698#M23774</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="231641" data-lia-user-login="PbiCeo" class="lia-mention lia-mention-user"&gt;PbiCeo&lt;/a&gt; , &lt;/P&gt;
&lt;P&gt;Try like&lt;/P&gt;
&lt;P&gt;last year MTD (complete) Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(ENDOFMONTH(dateadd('Date'[Date],-12,MONTH)))) /CALCULATE(day(eomonth(max(Sales[Sales Date]),0)),DATESMTD(ENDOFMONTH(dateadd('Date'[Date],-12,MONTH))))&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 16:27:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-1-year-ago/m-p/1336698#M23774</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-08-31T16:27:59Z</dc:date>
    </item>
  </channel>
</rss>

