<?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: Create dynamic measure comparing value in each row against context-based average in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-dynamic-measure-comparing-value-in-each-row-against/m-p/2936110#M96769</link>
    <description>&lt;P&gt;Thanks for the reply! But aren't values in a column static? Will they recalculate if I apply filtered?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 14:26:52 GMT</pubDate>
    <dc:creator>unique-user-nam</dc:creator>
    <dc:date>2022-11-29T14:26:52Z</dc:date>
    <item>
      <title>Create dynamic measure comparing value in each row against context-based average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-dynamic-measure-comparing-value-in-each-row-against/m-p/2935347#M96690</link>
      <description>&lt;P&gt;Hi there, new to the forum and DAX here.&lt;/P&gt;&lt;P&gt;I'm trying to create, for each store in a row, a measure named [Ranks] that compares 'cleaned'[TO Efficiency] and 'cleaned'[OCR] with the respective context-based averages, i.e. if I apply filters, the measure values change based on the filtered data as well.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Ranks = SWITCH(
    TRUE(),
    cleaned[TO Efficiency] &amp;lt; cleaned[Avg_TO_Eff] &amp;amp;&amp;amp; cleaned[OCR] &amp;gt; cleaned[Avg_OCR], "1",
    cleaned[TO Efficiency] &amp;lt; cleaned[Avg_TO_Eff] &amp;amp;&amp;amp; cleaned[OCR] &amp;lt; cleaned[Avg_OCR], "2",
    cleaned[TO Efficiency] &amp;gt; cleaned[Avg_TO_Eff] &amp;amp;&amp;amp; cleaned[OCR] &amp;gt; cleaned[Avg_OCR], "3",
    cleaned[TO Efficiency] &amp;gt; cleaned[Avg_TO_Eff] &amp;amp;&amp;amp; cleaned[OCR] &amp;lt; cleaned[Avg_OCR], "4"
)&lt;/LI-CODE&gt;&lt;P&gt;The above code, although produces one single value which is not what I want (my understanding is it's calculating for the entire table instead of for each row), illustrates what I want to achieve.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Eventually I want to assign 4 diffrent colors that change according to filter context to the bubbles scattered in four different quadrants delineated by the two averages.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tips would be greatly appreciated. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 09:46:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-dynamic-measure-comparing-value-in-each-row-against/m-p/2935347#M96690</guid>
      <dc:creator>unique-user-nam</dc:creator>
      <dc:date>2022-11-29T09:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic measure comparing value in each row against context-based average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-dynamic-measure-comparing-value-in-each-row-against/m-p/2935422#M96696</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478767" data-lia-user-login="unique-user-nam" class="lia-mention lia-mention-user"&gt;unique-user-nam&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you should use a new column instead of a new measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Shreya Mukkawar&lt;/P&gt;&lt;P&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;BR /&gt;Did I answer your question? Mark my post as a solution!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 10:02:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-dynamic-measure-comparing-value-in-each-row-against/m-p/2935422#M96696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-29T10:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic measure comparing value in each row against context-based average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-dynamic-measure-comparing-value-in-each-row-against/m-p/2936110#M96769</link>
      <description>&lt;P&gt;Thanks for the reply! But aren't values in a column static? Will they recalculate if I apply filtered?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:26:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-dynamic-measure-comparing-value-in-each-row-against/m-p/2936110#M96769</guid>
      <dc:creator>unique-user-nam</dc:creator>
      <dc:date>2022-11-29T14:26:52Z</dc:date>
    </item>
  </channel>
</rss>

