<?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 $ per weekday in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439150#M65232</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="375438" data-lia-user-login="mcmullenrich" class="lia-mention lia-mention-user"&gt;mcmullenrich&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can create a new calculated column for weekday&amp;nbsp;&lt;/P&gt;&lt;P&gt;FORMAT ( WEEKDAY(Table[Date]), "dddd" )&lt;/P&gt;&lt;P&gt;then use it in your visual with simple AVERAGE Measure&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2022 23:10:20 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-04-05T23:10:20Z</dc:date>
    <item>
      <title>Average $ per weekday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2438939#M65205</link>
      <description>&lt;P&gt;I have a table of cash receipts with a date column (i.e., 1/1/2022...4/4/2022). I'd like to calculate the average amount received by week day. So if there were 3 Mondays in the date range and the total collected on those Mondays was $3,000,000, I'd expect to see an output like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Weekday | Average&lt;/P&gt;&lt;P&gt;---------------------&lt;/P&gt;&lt;P&gt;Mon&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$1,000,000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 19:48:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2438939#M65205</guid>
      <dc:creator>mcmullenrich</dc:creator>
      <dc:date>2022-04-05T19:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Average $ per weekday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2438991#M65212</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="375438" data-lia-user-login="mcmullenrich" class="lia-mention lia-mention-user"&gt;mcmullenrich&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-justify"&gt;I'd suggest to create a date dimension in Power BI where one of the attributes is weekday. Here you have a blog post where they explain how to create such a date dimension.&lt;BR /&gt;&lt;A href="https://www.softcrylic.com/blogs/power-bi-for-beginners-how-to-create-a-date-table-in-power-bi/" target="_blank"&gt;Power Bi for Beginners: How to create a Date Table in Power Bi - Softcrylic&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Afterwards, create an Average measure and drag in the WeekDay attribute into your visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this helps or if yiou have any other questions &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Tom&lt;BR /&gt;&lt;A href="https://www.tackytech.blog/" target="_blank" rel="noopener"&gt;https://www.tackytech.blog/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.instagram.com/tackytechtom/" target="_blank" rel="noopener"&gt;https://www.instagram.com/tackytechtom/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 20:22:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2438991#M65212</guid>
      <dc:creator>tackytechtom</dc:creator>
      <dc:date>2022-04-05T20:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Average $ per weekday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2438995#M65213</link>
      <description>&lt;P&gt;Thanks &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="353745" data-lia-user-login="tackytechtom" class="lia-mention lia-mention-user"&gt;tackytechtom&lt;/a&gt;. So I'm actually working in PowerPivot, not PowerBI. I figured the DAX would be the same, but maybe not. I created a date table and have established the relationship between my transaction table and it. However, the closest I have come to getting the right output is to get the total deposits by weekday divided by the 7 days in the week instead of the 14 distinct occurences of each weekday.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 20:30:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2438995#M65213</guid>
      <dc:creator>mcmullenrich</dc:creator>
      <dc:date>2022-04-05T20:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Average $ per weekday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439150#M65232</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="375438" data-lia-user-login="mcmullenrich" class="lia-mention lia-mention-user"&gt;mcmullenrich&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can create a new calculated column for weekday&amp;nbsp;&lt;/P&gt;&lt;P&gt;FORMAT ( WEEKDAY(Table[Date]), "dddd" )&lt;/P&gt;&lt;P&gt;then use it in your visual with simple AVERAGE Measure&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 23:10:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439150#M65232</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-05T23:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Average $ per weekday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439165#M65233</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;. I tried this and got the average of all the individual transaction instead of the average daily total for each day.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 23:37:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439165#M65233</guid>
      <dc:creator>mcmullenrich</dc:creator>
      <dc:date>2022-04-05T23:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Average $ per weekday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439192#M65234</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="375438" data-lia-user-login="mcmullenrich" class="lia-mention lia-mention-user"&gt;mcmullenrich&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;DIVIDE (SUM (Table[Value]), CALCULATE (SUM(Table[Value]), ALLSELECTED(Table[Weekday])))&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 00:10:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439192#M65234</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-06T00:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Average $ per weekday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439219#M65235</link>
      <description>&lt;P&gt;Hmm...that got me a 1 for each day. I think I'm using the wrong Table[Value] on one of them:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Average&amp;nbsp;per&amp;nbsp;Weekday&amp;nbsp;:=&lt;BR /&gt;&lt;SPAN class=""&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;Combined[Amount]&amp;nbsp;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;Combined[Amount]&amp;nbsp;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN class=""&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;'Calendar'[Day&amp;nbsp;Of&amp;nbsp;Week]&amp;nbsp;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 00:58:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439219#M65235</guid>
      <dc:creator>mcmullenrich</dc:creator>
      <dc:date>2022-04-06T00:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Average $ per weekday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439248#M65238</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="375438" data-lia-user-login="mcmullenrich" class="lia-mention lia-mention-user"&gt;mcmullenrich&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I believe I misunderstood your reqyirement. You just want to divide over the number of frequency of the selected weeday. Therefore if you are using a date table just do:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Average&amp;nbsp;per&amp;nbsp;Weekday&amp;nbsp;:=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;DIVIDE&amp;nbsp;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SUM&amp;nbsp;(&lt;SPAN&gt;&amp;nbsp;Combined[Amount]&amp;nbsp;&lt;/SPAN&gt;)&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;COUNTROWS&amp;nbsp;(&lt;SPAN&gt;&amp;nbsp;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;)&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 01:24:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439248#M65238</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-06T01:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Average $ per weekday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439303#M65241</link>
      <description>&lt;P&gt;I'm going to try this when I get home. That said, to ensure I understand it and you understand what I'm looking to do, here is how I would solve it in excel:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Start with a table having columns "Date" and "Amount"&lt;/P&gt;&lt;P&gt;Add a column called "Weekday" with formula =WEEKDAY(Date)&lt;/P&gt;&lt;P&gt;Off to the right, create a small table with numbers 1 through 7 as rows&lt;/P&gt;&lt;P&gt;Create columns Total (=SUMIF(Weekday, Day, Amount) and Count (=COUNTIF(Weekday, Day)&lt;/P&gt;&lt;P&gt;Divide Total by Count&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This would give me the total deposits on each weekday and divide it by the number of occurrences of each workday for an average daily total for each weekday.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 01:51:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439303#M65241</guid>
      <dc:creator>mcmullenrich</dc:creator>
      <dc:date>2022-04-06T01:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Average $ per weekday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439324#M65243</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="375438" data-lia-user-login="mcmullenrich" class="lia-mention lia-mention-user"&gt;mcmullenrich&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is clear enough. But in Power Bi you have a date table with the weekday name column and this table is connected with the fact table through the date column. Is that correct?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 02:04:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439324#M65243</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-06T02:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Average $ per weekday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439329#M65244</link>
      <description>&lt;P&gt;Yes, that's correct&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 02:08:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439329#M65244</guid>
      <dc:creator>mcmullenrich</dc:creator>
      <dc:date>2022-04-06T02:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Average $ per weekday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439343#M65245</link>
      <description>&lt;P&gt;Then I hope the last solution works.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 02:12:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439343#M65245</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-06T02:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Average $ per weekday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439409#M65250</link>
      <description>&lt;P&gt;Not quite there yet. I realized the issue, just not sure how to solve in DAX. My excel-based approach above only works if I have a single entry for each date (i.e., a daily deposit amount). However, in my PBI table, I have multiple transactions for each date. As such, your approach gives me much smaller numbers than it should be. I need to find a way to sum by date before adding and counting.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 02:47:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439409#M65250</guid>
      <dc:creator>mcmullenrich</dc:creator>
      <dc:date>2022-04-06T02:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Average $ per weekday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439434#M65253</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="375438" data-lia-user-login="mcmullenrich" class="lia-mention lia-mention-user"&gt;mcmullenrich&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Even though, COUNTROWS ( 'Calendar' ) should give the frequency count of the selected weekday as the date table has no duplicates. Can you please share some screenshots of you tabels, data model, report and the measure?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 02:58:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439434#M65253</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-06T02:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Average $ per weekday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439567#M65258</link>
      <description>&lt;P&gt;This feels a bit like I cheated, but it did get me the result that I wanted:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Average&amp;nbsp;per&amp;nbsp;Weekday&amp;nbsp;:=&lt;BR /&gt;&lt;SPAN class=""&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;[Sum&amp;nbsp;of&amp;nbsp;Amt],&amp;nbsp;&lt;SPAN class=""&gt;MAX&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;Combined[WeekNo]&amp;nbsp;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&amp;nbsp;-&amp;nbsp;&lt;SPAN class=""&gt;MIN&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;Combined[WeekNo]&amp;nbsp;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&amp;nbsp;+&amp;nbsp;&lt;SPAN class=""&gt;1&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 04:45:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2439567#M65258</guid>
      <dc:creator>mcmullenrich</dc:creator>
      <dc:date>2022-04-06T04:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Average $ per weekday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2444751#M65579</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="375438" data-lia-user-login="mcmullenrich" class="lia-mention lia-mention-user"&gt;mcmullenrich&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Sorry for the late reply. Here is the workable solution as per sample sample&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Average of Amt :=
DIVIDE (
    SUM ( Combined[Amount] ),
    COUNTROWS ( FILTER ( 'Calendar', NOT ISBLANK ( Combined[Sum of Amt] ) ) )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 08 Apr 2022 02:55:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-weekday/m-p/2444751#M65579</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-08T02:55:04Z</dc:date>
    </item>
  </channel>
</rss>

