<?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 Dynamically calculating an index with a fixed value based on selection criteria in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-calculating-an-index-with-a-fixed-value-based-on/m-p/4253373#M168475</link>
    <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am doing a pricing analysis in EUR/L, and I would like to calculate to do an indexation of all products within a certain category where the base value for all products should always be the EUR/L price for the product with the highest % market share or top volume rank.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please refer to the below table:&lt;BR /&gt;- EUR/L comes from the data table&lt;/P&gt;&lt;P&gt;- % Market share is from the data table&lt;/P&gt;&lt;P&gt;- For volume rank I use the following measure :&amp;nbsp;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'EUR/L Overview'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'RSP Overview'&lt;/SPAN&gt;&lt;SPAN&gt;[Volumes]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- The intention for "EUR/L for product with highest market share" in this case, is supposed to generate 55.64 across all rows in the table, so that I am eventually able to do the indexation. I have been trying various DAX calculations with 'FILTER', 'MAX', 'CALCULATE' but it's either going against the system logic with true/false expressions, or generates the below output (the EUR/L for the respective product). Any suggestions how I can achieve the desired result?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciate any help&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2024 02:25:16 GMT</pubDate>
    <dc:creator>Newbie_1</dc:creator>
    <dc:date>2024-10-23T02:25:16Z</dc:date>
    <item>
      <title>Dynamically calculating an index with a fixed value based on selection criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-calculating-an-index-with-a-fixed-value-based-on/m-p/4253373#M168475</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am doing a pricing analysis in EUR/L, and I would like to calculate to do an indexation of all products within a certain category where the base value for all products should always be the EUR/L price for the product with the highest % market share or top volume rank.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please refer to the below table:&lt;BR /&gt;- EUR/L comes from the data table&lt;/P&gt;&lt;P&gt;- % Market share is from the data table&lt;/P&gt;&lt;P&gt;- For volume rank I use the following measure :&amp;nbsp;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'EUR/L Overview'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'RSP Overview'&lt;/SPAN&gt;&lt;SPAN&gt;[Volumes]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- The intention for "EUR/L for product with highest market share" in this case, is supposed to generate 55.64 across all rows in the table, so that I am eventually able to do the indexation. I have been trying various DAX calculations with 'FILTER', 'MAX', 'CALCULATE' but it's either going against the system logic with true/false expressions, or generates the below output (the EUR/L for the respective product). Any suggestions how I can achieve the desired result?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciate any help&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 02:25:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-calculating-an-index-with-a-fixed-value-based-on/m-p/4253373#M168475</guid>
      <dc:creator>Newbie_1</dc:creator>
      <dc:date>2024-10-23T02:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically calculating an index with a fixed value based on selection criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-calculating-an-index-with-a-fixed-value-based-on/m-p/4253497#M168483</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="190731" data-lia-user-login="Newbie_1" class="lia-mention lia-mention-user"&gt;Newbie_1&lt;/a&gt;&amp;nbsp;, Try usinge below DAX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Calculate the EUR/L for the product with the highest market share:&lt;/P&gt;
&lt;P&gt;HighestMarketShareEUR_L = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;MAX('EUR/L Overview'[EUR/L]),&lt;BR /&gt;FILTER(&lt;BR /&gt;'EUR/L Overview',&lt;BR /&gt;'EUR/L Overview'[% Market Share] = MAXX(ALL('EUR/L Overview'), 'EUR/L Overview'[% Market Share])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Calculate the EUR/L for the product with the top volume rank:&lt;BR /&gt;TopVolumeRankEUR_L = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;MAX('EUR/L Overview'[EUR/L]),&lt;BR /&gt;FILTER(&lt;BR /&gt;'EUR/L Overview',&lt;BR /&gt;RANKX(ALLSELECTED('EUR/L Overview'), CALCULATE(SUM('RSP Overview'[Volumes]))) = 1&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Choose the appropriate EUR/L value based on your criteria (highest market share or top volume rank):&lt;BR /&gt;BaseEUR_L = &lt;BR /&gt;IF(&lt;BR /&gt;[Use Market Share], &lt;BR /&gt;[HighestMarketShareEUR_L], &lt;BR /&gt;[TopVolumeRankEUR_L]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Create the indexation measure:&lt;BR /&gt;IndexedEUR_L = &lt;BR /&gt;DIVIDE(&lt;BR /&gt;'EUR/L Overview'[EUR/L],&lt;BR /&gt;[BaseEUR_L]&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;[Use Market Share] is a boolean measure or parameter that you can set to determine whether to use the highest market share or the top volume rank for the base EUR/L value.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 04:27:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-calculating-an-index-with-a-fixed-value-based-on/m-p/4253497#M168483</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-10-23T04:27:19Z</dc:date>
    </item>
  </channel>
</rss>

