<?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: Hourly average sales in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3728577#M145274</link>
    <description>&lt;P&gt;Not sure if the last one was the latest version &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="678168" data-lia-user-login="talespin" class="lia-mention lia-mention-user"&gt;talespin&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Pls download this&amp;nbsp;&lt;A href="https://we.tl/t-nGsshiJaP9" target="_blank"&gt;https://we.tl/t-nGsshiJaP9&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2024 19:41:43 GMT</pubDate>
    <dc:creator>Thimios</dc:creator>
    <dc:date>2024-02-27T19:41:43Z</dc:date>
    <item>
      <title>Hourly average sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3725029#M145077</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a large sales table (sample below) with sales lines for the last 5 years.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need to calculate average hourly sales per year so I can have multiple lines in a visual such as the one below:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 20:36:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3725029#M145077</guid>
      <dc:creator>Thimios</dc:creator>
      <dc:date>2024-02-26T20:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hourly average sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3725408#M145112</link>
      <description>&lt;P&gt;Sounds good. What have you tried and where are you stuck?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 01:17:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3725408#M145112</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-27T01:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hourly average sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3726120#M145146</link>
      <description>&lt;P&gt;Thanks for asking&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Tried using&amp;nbsp;&lt;SPAN&gt;Sales Avg Hourly =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;AVERAGEX&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;'Time Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Hour]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;[SALES]&lt;/SPAN&gt;&lt;SPAN&gt; ) where&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;'Time Table' is a support table&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;SALES = SUM ('Sales'[VALUE])&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;What I get in line chart, shows Total Sales (the sum of sales) instead of the average.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here is the above as table:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Could it be that a miss something about hte context?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 05:45:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3726120#M145146</guid>
      <dc:creator>Thimios</dc:creator>
      <dc:date>2024-02-27T05:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hourly average sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3727449#M145207</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150875" data-lia-user-login="Thimios" class="lia-mention lia-mention-user"&gt;Thimios&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to share pbix file sample data and with all sensitive data removed.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 12:01:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3727449#M145207</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-02-27T12:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hourly average sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3727626#M145216</link>
      <description>&lt;P&gt;Hard one&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="678168" data-lia-user-login="talespin" class="lia-mention lia-mention-user"&gt;talespin&lt;/a&gt;.&amp;nbsp;This is a huge model and requires lot of work...&lt;/P&gt;&lt;P&gt;Will try to provide a similar one, hopefully soon.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 12:49:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3727626#M145216</guid>
      <dc:creator>Thimios</dc:creator>
      <dc:date>2024-02-27T12:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hourly average sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3728560#M145271</link>
      <description>&lt;P&gt;Here you are. Let me know if you need additional info.&lt;/P&gt;&lt;P&gt;&lt;A href="https://we.tl/t-xVpUalv49d" target="_blank"&gt;https://we.tl/t-xVpUalv49d&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 19:35:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3728560#M145271</guid>
      <dc:creator>Thimios</dc:creator>
      <dc:date>2024-02-27T19:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hourly average sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3728577#M145274</link>
      <description>&lt;P&gt;Not sure if the last one was the latest version &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="678168" data-lia-user-login="talespin" class="lia-mention lia-mention-user"&gt;talespin&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Pls download this&amp;nbsp;&lt;A href="https://we.tl/t-nGsshiJaP9" target="_blank"&gt;https://we.tl/t-nGsshiJaP9&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 19:41:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3728577#M145274</guid>
      <dc:creator>Thimios</dc:creator>
      <dc:date>2024-02-27T19:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hourly average sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3728979#M145294</link>
      <description>&lt;P&gt;You didn't specify if you want this per order or per line item.&amp;nbsp; I assumed the former.&lt;/P&gt;
&lt;P&gt;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 01:38:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3728979#M145294</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-28T01:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hourly average sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3729571#M145319</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;,&amp;nbsp;worked perfectly.&lt;/P&gt;&lt;P&gt;I also created a similar measure per day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sales Avg Daily =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;a&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;summarize&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'SALES'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;SALES&lt;/SPAN&gt;&lt;SPAN&gt;[DATE]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;b&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;ADDCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;a&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"sm"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SALES&lt;/SPAN&gt;&lt;SPAN&gt;[VALUE]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;AVERAGEX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;b&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[sm]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Feb 2024 06:07:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hourly-average-sales/m-p/3729571#M145319</guid>
      <dc:creator>Thimios</dc:creator>
      <dc:date>2024-02-28T06:07:24Z</dc:date>
    </item>
  </channel>
</rss>

