<?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 Days Traded for Regions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Traded-for-Regions/m-p/1833799#M39010</link>
    <description>&lt;P&gt;Thanks Paul,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ill give this a try too,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a work around that gave the aqverage dayts traded by subsituting the summarise from regions to by Termninal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A bit slower but is working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You guys are amazing!!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 May 2021 13:31:29 GMT</pubDate>
    <dc:creator>Bopps</dc:creator>
    <dc:date>2021-05-10T13:31:29Z</dc:date>
    <item>
      <title>Average Days Traded for Regions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Traded-for-Regions/m-p/1832772#M38983</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help &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;I need to get the average days traded by region in my dashboard.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previously I used to distinct coiiunt the days that each terminal traded anfd then export to excel and average per region. This has become tedious as i now ahve multiple countries with multiple regions,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still a newbie to this asll so I attempted to right something to help, the below still returns the average days per terminal, which is great, but now I need this to return per region.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Days Traded Dax = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMMARIZE (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Sales by TPM',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Sales by TPM'[TPMNUMBER],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Days Traded", DISTINCTCOUNT ( 'Sales by TPM'[DATE] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Days Traded]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 May 2021 07:21:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Traded-for-Regions/m-p/1832772#M38983</guid>
      <dc:creator>Bopps</dc:creator>
      <dc:date>2021-05-10T07:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Traded for Regions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Traded-for-Regions/m-p/1832908#M38986</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="261008" data-lia-user-login="Bopps" class="lia-mention lia-mention-user"&gt;Bopps&lt;/a&gt; , You can try a measure like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AverageX (&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;'Sales by TPM',&lt;BR /&gt;'Sales by TPM'[region],&lt;BR /&gt;"Days Traded", DISTINCTCOUNT ( 'Sales by TPM'[DATE] )&lt;BR /&gt;),&lt;BR /&gt;[Days Traded]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;correct the table name for region&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 07:58:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Traded-for-Regions/m-p/1832908#M38986</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-05-10T07:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Traded for Regions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Traded-for-Regions/m-p/1832973#M38989</link>
      <description>&lt;P&gt;Thanks, ive tried this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to be returning the maximum though, the full number of days in the month.&amp;nbsp;&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;I pulled the data into excel to see the true average,&amp;nbsp;&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;&lt;P&gt;Average for April 2021 should be 27,35&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what isnt working?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could this be that the terminal is appearing for multiple products?&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should matter becuase we are doing disticnt count for that terminal for the day?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 08:23:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Traded-for-Regions/m-p/1832973#M38989</guid>
      <dc:creator>Bopps</dc:creator>
      <dc:date>2021-05-10T08:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Traded for Regions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Traded-for-Regions/m-p/1833561#M38999</link>
      <description>&lt;P&gt;Perhaps this measure is what you want...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Average Days per Terminal = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR _UniqueTerminalDays = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMMARIZE('Sales by TPM',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;'Sales by TPM'[TPMNUMBER],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;'Sales by TPM'[DATE]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR _Numerator = COUNTROWS(_UniqueTerminalDays)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR _Denominator = COUNTROWS(VALUES('Sales by TPM'[TPMNUMBER]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR _Result = DIVIDE(_Numerator, _Denominator)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;_Result&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 May 2021 11:24:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Traded-for-Regions/m-p/1833561#M38999</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2021-05-10T11:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Traded for Regions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Traded-for-Regions/m-p/1833799#M39010</link>
      <description>&lt;P&gt;Thanks Paul,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ill give this a try too,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a work around that gave the aqverage dayts traded by subsituting the summarise from regions to by Termninal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A bit slower but is working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You guys are amazing!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 13:31:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Traded-for-Regions/m-p/1833799#M39010</guid>
      <dc:creator>Bopps</dc:creator>
      <dc:date>2021-05-10T13:31:29Z</dc:date>
    </item>
  </channel>
</rss>

