<?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: calculate daily sales when drilling down time in a column chart in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-daily-sales-when-drilling-down-time-in-a-column-chart/m-p/4033844#M159712</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="772300" data-lia-user-login="dbarseg1" class="lia-mention lia-mention-user"&gt;dbarseg1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81736" data-lia-user-login="aduguid" class="lia-mention lia-mention-user"&gt;aduguid&lt;/a&gt;&amp;nbsp; for the quick reply. Please allow me to provide additional insights:&lt;/P&gt;
&lt;P&gt;According to your description, here are my steps you can follow as a solution.&lt;/P&gt;
&lt;P&gt;(1) This is my test data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2) We can create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Avg sales = AVERAGEX(ALLSELECTED('BSF Files'),[12. Sum of Extended Price])&lt;/LI-CODE&gt;
&lt;P&gt;(3) Then the result is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&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;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in your tables (&lt;STRONG&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/STRONG&gt;) with&amp;nbsp;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;pbix file.&amp;nbsp;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2024 06:46:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-10T06:46:49Z</dc:date>
    <item>
      <title>calculate daily sales when drilling down time in a column chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-daily-sales-when-drilling-down-time-in-a-column-chart/m-p/4033285#M159653</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to calculate average daily sales in cards (shown below) based on the time slicers selected:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;Currently, my measure is:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AvgDailySales = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;('BSF Files'[12. Sum of Extended Price]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;('Fiscal Calendar'[Date])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;BR /&gt;&lt;/SPAN&gt;This works correctly when the year is selected, but when the quarter or month is selected it is incorrect; it will divide the revenue for that quarter or month by ~365 days- or whatever is in the disctinct count of the total fiscal calendar date.&amp;nbsp;&lt;BR /&gt;Essentially, I would expect the average daily sales to be around the same in a quarter or month as it is in the year, however, the number is always extremelt low when quarter or month is selected because the more granular revenue is being divided by the same denominator as a year.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any help is very appreciated.&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 23:36:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-daily-sales-when-drilling-down-time-in-a-column-chart/m-p/4033285#M159653</guid>
      <dc:creator>dbarseg1</dc:creator>
      <dc:date>2024-07-09T23:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: calculate daily sales when drilling down time in a column chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-daily-sales-when-drilling-down-time-in-a-column-chart/m-p/4033320#M159659</link>
      <description>&lt;P&gt;try this measure&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AvgDailySales = 
    DIVIDE(
        SUM('BSF Files'[12. Sum of Extended Price]),
        COUNTROWS(VALUES('Fiscal Calendar'[Date]))
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 Jul 2024 00:45:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-daily-sales-when-drilling-down-time-in-a-column-chart/m-p/4033320#M159659</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-07-10T00:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: calculate daily sales when drilling down time in a column chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-daily-sales-when-drilling-down-time-in-a-column-chart/m-p/4033844#M159712</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="772300" data-lia-user-login="dbarseg1" class="lia-mention lia-mention-user"&gt;dbarseg1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81736" data-lia-user-login="aduguid" class="lia-mention lia-mention-user"&gt;aduguid&lt;/a&gt;&amp;nbsp; for the quick reply. Please allow me to provide additional insights:&lt;/P&gt;
&lt;P&gt;According to your description, here are my steps you can follow as a solution.&lt;/P&gt;
&lt;P&gt;(1) This is my test data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2) We can create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Avg sales = AVERAGEX(ALLSELECTED('BSF Files'),[12. Sum of Extended Price])&lt;/LI-CODE&gt;
&lt;P&gt;(3) Then the result is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&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;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in your tables (&lt;STRONG&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/STRONG&gt;) with&amp;nbsp;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;pbix file.&amp;nbsp;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 06:46:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-daily-sales-when-drilling-down-time-in-a-column-chart/m-p/4033844#M159712</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-10T06:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: calculate daily sales when drilling down time in a column chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-daily-sales-when-drilling-down-time-in-a-column-chart/m-p/4035146#M159901</link>
      <description>&lt;P&gt;Hi Neeko,&amp;nbsp;&lt;BR /&gt;Thank you for the images and examples. By showing me the relationships in your tables, I understood that the issue was more with my calendar data than the formula. I changed what columns were shown in my slicers to be corresponding to the Fiscal Year calendar and this fixed the calculation. I followed the connection you made in your example data.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Appreciate your help!!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 16:12:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-daily-sales-when-drilling-down-time-in-a-column-chart/m-p/4035146#M159901</guid>
      <dc:creator>dbarseg1</dc:creator>
      <dc:date>2024-07-10T16:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: calculate daily sales when drilling down time in a column chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-daily-sales-when-drilling-down-time-in-a-column-chart/m-p/4035147#M159902</link>
      <description>&lt;P&gt;Thank you! Once I fixed my calendar data relationship, this formula did the same thing as my prior formula. I sincerely appreciate your prompt reply!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 16:13:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-daily-sales-when-drilling-down-time-in-a-column-chart/m-p/4035147#M159902</guid>
      <dc:creator>dbarseg1</dc:creator>
      <dc:date>2024-07-10T16:13:25Z</dc:date>
    </item>
  </channel>
</rss>

