<?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: Grid smoothing DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033175#M45604</link>
    <description>&lt;P&gt;Below is a dashbboard image.&amp;nbsp; The tables were too big to add;&amp;nbsp; I'll have to cut them down somehow.&amp;nbsp; I was able to do a simple average of immediately adjacent cells but haven't figured out anything more complex.&amp;nbsp; I would like to be able to do some sort of &lt;A href="https://en.wikipedia.org/wiki/Inverse_distance_weighting" target="_self"&gt;Inverse Distance Weighting&lt;/A&gt; or other interpolation.&lt;/P&gt;&lt;P&gt;In my example, I am replacing values outside and expected range with an average of the 4 or less adjacent cells.&lt;/P&gt;&lt;P&gt;Thanks.&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;&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;</description>
    <pubDate>Mon, 23 Aug 2021 18:39:23 GMT</pubDate>
    <dc:creator>btfergie</dc:creator>
    <dc:date>2021-08-23T18:39:23Z</dc:date>
    <item>
      <title>Grid smoothing DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/1926719#M41792</link>
      <description>&lt;P&gt;I am trying to figure out a way to come up with a way to take a 2D XY grid of table values and come up with smoothed values by using the neighboring cells.&amp;nbsp; Perhaps this would use some sort of distance weighted algorithm.&amp;nbsp; I would use this to look for anomolies in the data and replace them with the estimated value if it exceeds a threshold.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 22:18:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/1926719#M41792</guid>
      <dc:creator>btfergie</dc:creator>
      <dc:date>2021-06-28T22:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Grid smoothing DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2029011#M45467</link>
      <description>&lt;P&gt;sounds like a fun exercise.&amp;nbsp;Please provide sample data in usable format (not as a picture - maybe insert into a table?) and show the expected outcome.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Aug 2021 00:37:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2029011#M45467</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-08-21T00:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Grid smoothing DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033175#M45604</link>
      <description>&lt;P&gt;Below is a dashbboard image.&amp;nbsp; The tables were too big to add;&amp;nbsp; I'll have to cut them down somehow.&amp;nbsp; I was able to do a simple average of immediately adjacent cells but haven't figured out anything more complex.&amp;nbsp; I would like to be able to do some sort of &lt;A href="https://en.wikipedia.org/wiki/Inverse_distance_weighting" target="_self"&gt;Inverse Distance Weighting&lt;/A&gt; or other interpolation.&lt;/P&gt;&lt;P&gt;In my example, I am replacing values outside and expected range with an average of the 4 or less adjacent cells.&lt;/P&gt;&lt;P&gt;Thanks.&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;&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;</description>
      <pubDate>Mon, 23 Aug 2021 18:39:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033175#M45604</guid>
      <dc:creator>btfergie</dc:creator>
      <dc:date>2021-08-23T18:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Grid smoothing DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033240#M45608</link>
      <description>&lt;P&gt;Ever played the "Game of Life"?&amp;nbsp; Of the eight adjacent cells do you assume they all have the same weight, or is the weight of the corner cells less than the edge cells?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 20:05:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033240#M45608</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-08-23T20:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Grid smoothing DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033246#M45609</link>
      <description>&lt;P&gt;Yes.&amp;nbsp; The corners could have a weight of 1/1.41 vs 1 for edge.&amp;nbsp; I would ideally want to include more distant cells and could have the weight as the inverse of distance.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 20:13:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033246#M45609</guid>
      <dc:creator>btfergie</dc:creator>
      <dc:date>2021-08-23T20:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Grid smoothing DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033353#M45614</link>
      <description>&lt;P&gt;Here is a sample table:&lt;/P&gt;&lt;P&gt;X Y Value&lt;BR /&gt;-5 5 0.82&lt;BR /&gt;-4 5 1.15&lt;BR /&gt;-3 5 1.44&lt;BR /&gt;-2 5 1.33&lt;BR /&gt;-1 5 1.46&lt;BR /&gt;0 5 1.51&lt;BR /&gt;1 5 1.48&lt;BR /&gt;2 5 1.67&lt;BR /&gt;3 5 1.62&lt;BR /&gt;4 5 0.82&lt;BR /&gt;5 5 0.59&lt;BR /&gt;-5 4 1.09&lt;BR /&gt;-4 4 1.28&lt;BR /&gt;-3 4 1.42&lt;BR /&gt;-2 4 1.4&lt;BR /&gt;-1 4 1.58&lt;BR /&gt;0 4 1.49&lt;BR /&gt;1 4 1.7&lt;BR /&gt;2 4 1.52&lt;BR /&gt;3 4 1.52&lt;BR /&gt;4 4 1.15&lt;BR /&gt;5 4 0.89&lt;BR /&gt;-5 3 1.3&lt;BR /&gt;-4 3 1.56&lt;BR /&gt;-3 3 1.46&lt;BR /&gt;-2 3 1.56&lt;BR /&gt;-1 3 1.4&lt;BR /&gt;0 3 1.36&lt;BR /&gt;1 3 1.48&lt;BR /&gt;2 3 1.33&lt;BR /&gt;3 3 1.51&lt;BR /&gt;4 3 1.1&lt;BR /&gt;5 3 0.92&lt;BR /&gt;-5 2 1.26&lt;BR /&gt;-4 2 1.72&lt;BR /&gt;-3 2 1.66&lt;BR /&gt;-2 2 1.4&lt;BR /&gt;-1 2 1.25&lt;BR /&gt;0 2 1.32&lt;BR /&gt;1 2 1.31&lt;BR /&gt;2 2 1.33&lt;BR /&gt;3 2 1.48&lt;BR /&gt;4 2 1.33&lt;BR /&gt;5 2 1.2&lt;BR /&gt;-5 1 0.91&lt;BR /&gt;-4 1 1.56&lt;BR /&gt;-3 1 1.72&lt;BR /&gt;-2 1 1.19&lt;BR /&gt;-1 1 1.02&lt;BR /&gt;0 1 1.07&lt;BR /&gt;1 1 1.21&lt;BR /&gt;2 1 1.19&lt;BR /&gt;3 1 1.48&lt;BR /&gt;4 1 1.79&lt;BR /&gt;5 1 1.52&lt;BR /&gt;-5 0 0.52&lt;BR /&gt;-4 0 0.24&lt;BR /&gt;-3 0 0.29&lt;BR /&gt;-2 0 0.37&lt;BR /&gt;-1 0 0.11&lt;BR /&gt;0 0 0&lt;BR /&gt;1 0 0.43&lt;BR /&gt;2 0 0.95&lt;BR /&gt;3 0 1.3&lt;BR /&gt;4 0 1.3&lt;BR /&gt;5 0 1.16&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 21:14:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033353#M45614</guid>
      <dc:creator>btfergie</dc:creator>
      <dc:date>2021-08-23T21:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Grid smoothing DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033425#M45618</link>
      <description>&lt;P&gt;This feels a little too harsh.&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 think it should start at 1 in the middle and then use twice the distance&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;or even more agressive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 22:28:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033425#M45618</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-08-23T22:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Grid smoothing DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033428#M45619</link>
      <description>&lt;P&gt;Perhaps I shouldn't have used the word smoothing but rather prediction based on surrounding cells.&amp;nbsp; I am sure there are more and less aggressive ways of doing it.&amp;nbsp; It would be nice to be able to change the aggressiveness with a filter.&lt;/P&gt;&lt;P&gt;The part I can't figure out is how do I use the surrounding cell values and distances to come up with an estimate of each cell.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 22:37:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033428#M45619</guid>
      <dc:creator>btfergie</dc:creator>
      <dc:date>2021-08-23T22:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Grid smoothing DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033433#M45620</link>
      <description>&lt;P&gt;That's the easy part ( and why I mentioned the Game Of Life).&amp;nbsp; You maintain two separate surfaces.&amp;nbsp; One for display and one for computation. Once you have computed a new generation you blip it onto the screen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course in Power BI you can't do that, it has no memory.&amp;nbsp; You will need to show the new generation screen (table) next to the old one, and feed it with measures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll play with your sample data to see what I can come up with&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 22:43:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033433#M45620</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-08-23T22:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Grid smoothing DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033436#M45621</link>
      <description>&lt;P&gt;Yes, I get the idea and I could probably come up with something in Excel.&amp;nbsp; I am trying to figure it out in Power Query.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 22:48:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033436#M45621</guid>
      <dc:creator>btfergie</dc:creator>
      <dc:date>2021-08-23T22:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Grid smoothing DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033537#M45623</link>
      <description>&lt;P&gt;That should be rather simple, but you won't be able to tune it nicely - you can use a parameter value to twist the knob but it is not nearly as interactive as a slicer. Let's try both ways and compare the outcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Power BI you can use the Play Axis to show multiple generations...&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can calculate the second generation table thusly:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table2 = SELECTCOLUMNS('Table',"X",'Table'[X],"Y",'Table'[Y],"Generation",2)

Value = 
var x = Table2[X]
var y = Table2[Y]
return CALCULATE(max('Table'[Value]),'Table'[X]=x,'Table'[Y]=y) -- plus the weighting of our choice of the neighboring cells)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 24 Aug 2021 01:46:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2033537#M45623</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-08-24T01:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Grid smoothing DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2038466#M45746</link>
      <description>&lt;P&gt;That looks like it is going to work.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 18:30:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grid-smoothing-DAX/m-p/2038466#M45746</guid>
      <dc:creator>btfergie</dc:creator>
      <dc:date>2021-08-25T18:30:18Z</dc:date>
    </item>
  </channel>
</rss>

