<?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: Calculate the ranking and cumulative contribution in calculated columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-ranking-and-cumulative-contribution-in-calculated/m-p/1903500#M41066</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;, I want to create calculated columns, because I want after that to apply some filter scenarios, and for me is easier to handle. If you could calculate the cumulative materials contribution based on ranking (column f) you would help me a lot.&lt;BR /&gt;thanx&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jun 2021 09:55:28 GMT</pubDate>
    <dc:creator>kostask</dc:creator>
    <dc:date>2021-06-16T09:55:28Z</dc:date>
    <item>
      <title>Calculate the ranking and cumulative contribution in calculated columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-ranking-and-cumulative-contribution-in-calculated/m-p/1901431#M41006</link>
      <description>&lt;P&gt;Hi guys!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to figure out the following problem, by creating &lt;STRONG&gt;&lt;U&gt;calculated columns&lt;/U&gt;&lt;/STRONG&gt; on my original table, and not measures.&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;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have many rows with sold materials. Each row contains material and sales amount (B).&lt;/P&gt;&lt;P&gt;I created the total sales by material (C)&amp;nbsp; which came to every row.&lt;/P&gt;&lt;P&gt;I also created the material's contribution to total sales (D) for every row also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I miss, is to create the ranking of every material based on its contribution (Column E) and finally (I guess the most tricky) the cumulative contribution of every material, based on its ranking (1st, 1st+2nd, 1st+2nd+3rd, etc..)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 13:01:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-ranking-and-cumulative-contribution-in-calculated/m-p/1901431#M41006</guid>
      <dc:creator>kostask</dc:creator>
      <dc:date>2021-06-15T13:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the ranking and cumulative contribution in calculated columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-ranking-and-cumulative-contribution-in-calculated/m-p/1903433#M41061</link>
      <description>&lt;P&gt;Actually, the remaining calculations are not too difficult but why don't you calculate all of this in Power Query?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 09:31:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-ranking-and-cumulative-contribution-in-calculated/m-p/1903433#M41061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-16T09:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the ranking and cumulative contribution in calculated columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-ranking-and-cumulative-contribution-in-calculated/m-p/1903457#M41063</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="210525" data-lia-user-login="kostask" class="lia-mention lia-mention-user"&gt;kostask&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;To calculate Ranking of material you can use,&lt;BR /&gt;Rank=RANKX(table,table[Material Contribution]).&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 09:40:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-ranking-and-cumulative-contribution-in-calculated/m-p/1903457#M41063</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-16T09:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the ranking and cumulative contribution in calculated columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-ranking-and-cumulative-contribution-in-calculated/m-p/1903500#M41066</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;, I want to create calculated columns, because I want after that to apply some filter scenarios, and for me is easier to handle. If you could calculate the cumulative materials contribution based on ranking (column f) you would help me a lot.&lt;BR /&gt;thanx&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 09:55:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-ranking-and-cumulative-contribution-in-calculated/m-p/1903500#M41066</guid>
      <dc:creator>kostask</dc:creator>
      <dc:date>2021-06-16T09:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the ranking and cumulative contribution in calculated columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-ranking-and-cumulative-contribution-in-calculated/m-p/1903532#M41069</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="210525" data-lia-user-login="kostask" class="lia-mention lia-mention-user"&gt;kostask&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculated columns, especially in fact tables, should be avoided at all costs because such columns do not participate in the data compressing phase and thus they tables are not optimally compressed, hence DAX queries will not run at the maximum speed possible. This rule is especially important in models with fact tables that contain millions and millions of rows. Columns should always be calculated either in the source system and then brought over into Power BI or they should be calculated in Power Query (that's what this tool is for). Surely it's not hard at all to do all your calculations in Power Query. I could create the code for you but not right now as I'm at work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; If you wait a bit, I'll give you M code that you'll be able to use in Power Query on your data. Up to you.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 10:07:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-ranking-and-cumulative-contribution-in-calculated/m-p/1903532#M41069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-16T10:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the ranking and cumulative contribution in calculated columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-ranking-and-cumulative-contribution-in-calculated/m-p/1903663#M41076</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="210525" data-lia-user-login="kostask" class="lia-mention lia-mention-user"&gt;kostask&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You can try this formula.&lt;BR /&gt;Cumulative materials =&lt;BR /&gt;VAR CurrentRank = 'Sales'[Material Ranking]&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM ( Material Contribution ),&lt;BR /&gt;FILTER ( Sales, 'Sales'[Material Ranking] &amp;lt;= CURRENTRANK )&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-to-Get-Your-Question-Answered-Quickly/m-p/1626726#M32906" target="_self"&gt;How to get your question answered quickly&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 11:09:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-ranking-and-cumulative-contribution-in-calculated/m-p/1903663#M41076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-16T11:09:14Z</dc:date>
    </item>
  </channel>
</rss>

