<?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 DAX Help : Previous 3 Months average in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2582710#M74155</link>
    <description>&lt;P&gt;&lt;SPAN&gt;​Hi all, hope you are doing well&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to create a measure to get Previous 3 month average, yet could not figure out on how to do this in DAX. For example, based on the the picture attahced below:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;-Jan can be blank&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;-Febuary can be blank&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;-March can be blank&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;-April onwards will sum every number from January to March and devide by 3, because we are looking at the average of previous 3 month.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;-May will sum every number from February to April and devide by 3&lt;/STRONG&gt;&lt;/EM&gt;&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;&lt;SPAN&gt;Any help is very much appreciated. Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 09:43:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-06-16T09:43:07Z</dc:date>
    <item>
      <title>DAX Help : Previous 3 Months average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2582710#M74155</link>
      <description>&lt;P&gt;&lt;SPAN&gt;​Hi all, hope you are doing well&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to create a measure to get Previous 3 month average, yet could not figure out on how to do this in DAX. For example, based on the the picture attahced below:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;-Jan can be blank&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;-Febuary can be blank&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;-March can be blank&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;-April onwards will sum every number from January to March and devide by 3, because we are looking at the average of previous 3 month.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;-May will sum every number from February to April and devide by 3&lt;/STRONG&gt;&lt;/EM&gt;&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;&lt;SPAN&gt;Any help is very much appreciated. Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 09:43:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2582710#M74155</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-16T09:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help : Previous 3 Months average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2582755#M74161</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;in your photo is that a data table and you need a calculated column or that is a visual table and you want to add a measure? If it's a visual what is the measure you have there for Lead Time (Days)?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 09:52:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2582755#M74161</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-06-16T09:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help : Previous 3 Months average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2582775#M74164</link>
      <description>&lt;P&gt;is actually a table that need to calculated a column ya.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 09:57:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2582775#M74164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-16T09:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help : Previous 3 Months average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2582831#M74168</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Average of Previous 3 Full Months = 
VAR _current_date = 'Table'[GRN Date]
VAR _end_point = EOMONTH(_current_date, -1)
VAR _start_point = EOMONTH(_current_date, -4) + 1
VAR _min_date_total = MIN('Table'[GRN Date])
VAR _result = 
    DIVIDE(
        SUMX(
            FILTER(
                'Table',
                'Table'[GRN Date] &amp;gt;= _start_point &amp;amp;&amp;amp; 'Table'[GRN Date] &amp;lt;= _end_point
            ),
            'Table'[Lead Time (Days)]
        ),
        3
    ) 
RETURN
    IF(
        EOMONTH(_start_point, -1)  &amp;gt;= EOMONTH(_min_date_total, -1),
        _result
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Data-Stories-Gallery/Contoso-by-SpartaBI/m-p/2449543" target="_blank" rel="noopener"&gt;&lt;FONT size="4" color="#0000EE"&gt;Showcase Report – Contoso By SpartaBI&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.spartabi.com" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A href="https://www.linkedin.com/company/spartabi" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt; &amp;nbsp;&amp;nbsp;&lt;A href="https://www.facebook.com/SpartaBI" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.spartabi.com" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 10:16:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2582831#M74168</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-06-16T10:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help : Previous 3 Months average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2584466#M74277</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377293" data-lia-user-login="SpartaBI" class="lia-mention lia-mention-user"&gt;SpartaBI&lt;/a&gt;&amp;nbsp;, sincerrely apologise to interrupt you again.&amp;nbsp;&lt;BR /&gt;I have face another difficulties that is similar to this question. However, in the current case, I would like to created&amp;nbsp;&lt;SPAN&gt;visual table and add a measure. For example, based on the visual below, the light blue color bar can be refer to the average of the lead times (which i can just drag the column into the visual and click calculate average); the main problem that I face, is that how am i able to show the average lead time of the previous 3 month in the line value, for instance, the line chart of april should show 19&amp;nbsp; ,may is 22 , june is 15. Thanks you so much for your assistance&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 03:54:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2584466#M74277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-17T03:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help : Previous 3 Months average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2585114#M74318</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;we are not dealing here with best practice stuff, but, as we created the column before you can create this measure to use as the line value:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Average of Previous 3 Full Months Measure Dependant on Coloumn = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AVERAGE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table '[Average of Previous 3 Full Months Calculated Column]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Data-Stories-Gallery/Contoso-by-SpartaBI/m-p/2449543" target="_blank" rel="noopener"&gt;&lt;FONT size="4" color="#0000EE"&gt;Showcase Report – Contoso By SpartaBI&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.spartabi.com" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A href="https://www.linkedin.com/company/spartabi" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt; &amp;nbsp;&amp;nbsp;&lt;A href="https://www.facebook.com/SpartaBI" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.spartabi.com" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 08:54:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2585114#M74318</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-06-17T08:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help : Previous 3 Months average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2585148#M74321</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377293" data-lia-user-login="SpartaBI" class="lia-mention lia-mention-user"&gt;SpartaBI&lt;/a&gt;&amp;nbsp;, thanks for the clarification !!! appreciate!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 09:08:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2585148#M74321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-17T09:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help : Previous 3 Months average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2585157#M74322</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;my pleasure. Please also mark the previous message as a solution for community visabilty.&lt;BR /&gt;P.S.&lt;BR /&gt;Check out my showcase report - got some high level stuff there &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543&lt;/A&gt;&lt;BR /&gt;Give it a thumbs up if you liked it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 09:10:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2585157#M74322</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-06-17T09:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help : Previous 3 Months average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2585169#M74324</link>
      <description>&lt;P&gt;yup ! have mark that as solution already !&lt;/P&gt;&lt;P&gt;will definetely check on the report !&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 09:13:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2585169#M74324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-17T09:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help : Previous 3 Months average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2585193#M74327</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377293" data-lia-user-login="SpartaBI" class="lia-mention lia-mention-user"&gt;SpartaBI&lt;/a&gt;&amp;nbsp;, do you have any experience on automating the process of extrating data from different data source ? such as Oracle ?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 09:16:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2585193#M74327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-17T09:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help : Previous 3 Months average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2585264#M74332</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;not sure what you meant?&lt;BR /&gt;1. Extracting data from oracle to Power BI? (In this case you need an oracle client and a Power BI gateway)&lt;BR /&gt;2. Creating an automation process that will create a DW from the data in Oracle in something that is more suitable for Power BI like Azure SQL?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 09:36:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-Previous-3-Months-average/m-p/2585264#M74332</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-06-17T09:36:56Z</dc:date>
    </item>
  </channel>
</rss>

