<?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: Average Daily Spend in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Average-Daily-Spend/m-p/2214717#M33227</link>
    <description>&lt;P&gt;It's possible but that's a pretty strange total to show. How do you interpret it? What does that sum of averages represent?&lt;/P&gt;</description>
    <pubDate>Tue, 30 Nov 2021 19:08:55 GMT</pubDate>
    <dc:creator>AlexisOlson</dc:creator>
    <dc:date>2021-11-30T19:08:55Z</dc:date>
    <item>
      <title>Average Daily Spend</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Average-Daily-Spend/m-p/2214653#M33226</link>
      <description>&lt;P&gt;Hello All.&lt;/P&gt;&lt;P&gt;I need to calculate the Average Daily Spend.&lt;BR /&gt;&lt;BR /&gt;Average Daily Spend = Total cost / Avg Days for the selected period.&lt;BR /&gt;ex: If we select the period 1 to 25 then Average days should be 25.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;currently&amp;nbsp; total rows of &lt;STRONG&gt;Average Daily Spend&lt;/STRONG&gt; column in average. But I need to show it in &lt;STRONG&gt;SUM&amp;nbsp;&lt;/STRONG&gt;instead of &lt;STRONG&gt;AVERAGE&lt;/STRONG&gt;.&lt;BR /&gt;According to the below DAX, logic is working fine except for total rows.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Avg Days = &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var startofthisperiod = FIRSTDATE(Dates[Date])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var endofthisperiod =LASTDATE(Dates[Date])+1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var noOfDays = DATEDIFF (startofthisperiod, endofthisperiod,DAY)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;noOfDays&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;AVG Daily Spend = &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DIVIDE(SUM(Table[Cost]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[Avg Days]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&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;&lt;P&gt;Thanks in Advance.&lt;BR /&gt;Swathi Kundar&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 19:01:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Average-Daily-Spend/m-p/2214653#M33226</guid>
      <dc:creator>SwathiKundar</dc:creator>
      <dc:date>2021-12-20T19:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Average Daily Spend</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Average-Daily-Spend/m-p/2214717#M33227</link>
      <description>&lt;P&gt;It's possible but that's a pretty strange total to show. How do you interpret it? What does that sum of averages represent?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 19:08:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Average-Daily-Spend/m-p/2214717#M33227</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-11-30T19:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Average Daily Spend</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Average-Daily-Spend/m-p/2216648#M33251</link>
      <description>&lt;P&gt;If it's possible then how achieve it.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 18:43:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Average-Daily-Spend/m-p/2216648#M33251</guid>
      <dc:creator>SwathiKundar</dc:creator>
      <dc:date>2021-12-01T18:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Average Daily Spend</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Average-Daily-Spend/m-p/2216692#M33253</link>
      <description>&lt;P&gt;You'd need to iterate over one level of granularity where you take the average below that level and sum up those averages. I can't tell what determines what level of granularity you want to change your aggregation rule at though.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 19:30:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Average-Daily-Spend/m-p/2216692#M33253</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-12-01T19:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Average Daily Spend</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Average-Daily-Spend/m-p/2224513#M33330</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/287483"&gt;@SwathiKundar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try to create a measure like below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = SUMX(VALUES('Table'[Month]),[AVG Daily Spend])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vlianlmsft_0-1638857059821.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/640209i6AE7577F9DB5866E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vlianlmsft_0-1638857059821.png" alt="Vlianlmsft_0-1638857059821.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&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>Tue, 07 Dec 2021 06:04:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Average-Daily-Spend/m-p/2224513#M33330</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2021-12-07T06:04:47Z</dc:date>
    </item>
  </channel>
</rss>

