<?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: Moving Average ignoring Dates without transaction in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-ignoring-Dates-without-transaction/m-p/3412679#M129022</link>
    <description>&lt;P&gt;Hello Ilbedlin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;in how far is this a UX red flag?&lt;/P&gt;&lt;P&gt;I need the moving average being calculated right. And as i know this means that days without transaction (in my case a measurement on a component), need to be ignored. Otherwise they drag the result of the moving average down although there were company holidays and nothing was measured.&lt;BR /&gt;correct me if i am wrong.&lt;/P&gt;&lt;P&gt;Could you, based on my file, give an example how a window function could solve that task?&lt;/P&gt;</description>
    <pubDate>Sun, 03 Sep 2023 16:47:12 GMT</pubDate>
    <dc:creator>JoRose</dc:creator>
    <dc:date>2023-09-03T16:47:12Z</dc:date>
    <item>
      <title>Moving Average ignoring Dates without transaction</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-ignoring-Dates-without-transaction/m-p/3408542#M128807</link>
      <description>&lt;P&gt;Hello DAX Community,&lt;/P&gt;&lt;P&gt;i have the following issue: My Datamodel has the three tables&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;DimMeasurement -&amp;gt; Contains different measurement types&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;DimDate&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;FactMeasure -&amp;gt; Every measurement one row, one of the two measurement types from&amp;nbsp;DimMeasurement&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate the moving average over the measured variation. The variation is measured severel times per day. On the same day different measurement types can occur, in my example scenario length and width measurements.&lt;/P&gt;&lt;P&gt;Usually nothing is measured on weekends. So the moving average needs to distinguish between the measurement types and it needs to ignore dates without measurement (not necessarily weekend but also a week day without measurement). I have uploaded the example datamodel to my OneDrive&amp;nbsp;&lt;A href="https://1drv.ms/u/s!Av-d9yeFZd5utR8V8BeLc_d2iQoy?e=Y9fUsP" target="_self"&gt;DAX_MovingAverage.pbix&lt;/A&gt;&amp;nbsp;.&lt;BR /&gt;I hope one of you can help me out.&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2023 04:26:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-ignoring-Dates-without-transaction/m-p/3408542#M128807</guid>
      <dc:creator>JoRose</dc:creator>
      <dc:date>2023-09-02T04:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Average ignoring Dates without transaction</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-ignoring-Dates-without-transaction/m-p/3412197#M129001</link>
      <description>&lt;LI-CODE lang="markup"&gt; it needs to ignore dates without measurement (not necessarily weekend but also a week day without measurement)&lt;/LI-CODE&gt;
&lt;P&gt;That's a UX red flag.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if you must - use one of the new Window functions. They are based on the current filter context and give you what you need "for free".&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2023 20:21:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-ignoring-Dates-without-transaction/m-p/3412197#M129001</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-09-02T20:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Average ignoring Dates without transaction</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-ignoring-Dates-without-transaction/m-p/3412679#M129022</link>
      <description>&lt;P&gt;Hello Ilbedlin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;in how far is this a UX red flag?&lt;/P&gt;&lt;P&gt;I need the moving average being calculated right. And as i know this means that days without transaction (in my case a measurement on a component), need to be ignored. Otherwise they drag the result of the moving average down although there were company holidays and nothing was measured.&lt;BR /&gt;correct me if i am wrong.&lt;/P&gt;&lt;P&gt;Could you, based on my file, give an example how a window function could solve that task?&lt;/P&gt;</description>
      <pubDate>Sun, 03 Sep 2023 16:47:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-ignoring-Dates-without-transaction/m-p/3412679#M129022</guid>
      <dc:creator>JoRose</dc:creator>
      <dc:date>2023-09-03T16:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Average ignoring Dates without transaction</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-ignoring-Dates-without-transaction/m-p/3412775#M129048</link>
      <description>&lt;P&gt;In your original post you said&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; but also a week day without measurement&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You didn't mention holidays, or describe the overall context.&amp;nbsp; That led me to assume that you have regular workdays without data.&amp;nbsp; In such a case I would not want to ignore that fact, but rather highlight the impact.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please indicate the window size and position for your moving average (for example "three days before to three days after").&amp;nbsp; Please also consider adding a workday flag to your dates table, rather than using a measure.&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>Sun, 03 Sep 2023 19:45:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-ignoring-Dates-without-transaction/m-p/3412775#M129048</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-09-03T19:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Average ignoring Dates without transaction</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-ignoring-Dates-without-transaction/m-p/3423854#M129659</link>
      <description>&lt;P&gt;Helo Ibendlin,&lt;/P&gt;&lt;P&gt;thanks for your answer so far. I havent come to test it yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 13:25:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-ignoring-Dates-without-transaction/m-p/3423854#M129659</guid>
      <dc:creator>JoRose</dc:creator>
      <dc:date>2023-09-13T13:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Average ignoring Dates without transaction</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-ignoring-Dates-without-transaction/m-p/3430392#M130033</link>
      <description>&lt;P&gt;Helo Ibendlin,&lt;/P&gt;&lt;P&gt;your solution works perfectly. Just changed "COUNTROWS" with "AVERAGEX" in combination with the measure "Variation".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!! &lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 08:36:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-ignoring-Dates-without-transaction/m-p/3430392#M130033</guid>
      <dc:creator>JoRose</dc:creator>
      <dc:date>2023-09-14T08:36:31Z</dc:date>
    </item>
  </channel>
</rss>

