<?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 Percent of a specific row from other rows in a column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Percent-of-a-specific-row-from-other-rows-in-a-column/m-p/2516412#M70002</link>
    <description>&lt;P&gt;Hello, Henrique! This is also helpfull. Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2022 06:10:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-16T06:10:19Z</dc:date>
    <item>
      <title>Calculate Percent of a specific row from other rows in a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Percent-of-a-specific-row-from-other-rows-in-a-column/m-p/2513835#M69803</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hello, I would like to create a measure in DAX to calculate Percent of CAB and CAN for the specified rows.&lt;/P&gt;&lt;P&gt;I marked with blue CAB and with green CAN. This needs to be dynamic because there is a hierarchy on Level 1(every row is splited on other 3 types).&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 14:44:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Percent-of-a-specific-row-from-other-rows-in-a-column/m-p/2513835#M69803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-13T14:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Percent of a specific row from other rows in a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Percent-of-a-specific-row-from-other-rows-in-a-column/m-p/2515606#M69945</link>
      <description>&lt;P&gt;Hi, Adrian.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hmm, I think you should create two diferent measures with these formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Formula 1 -----&amp;gt; CAN = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Tabela[% of CAB/CAN]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;Tabela[% of CAB/CAN]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"Amount/06.CAN"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Formula 2 -----&amp;gt; CAB = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Tabela[% of CAB/CAN]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;Tabela[% of CAB/CAN]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"Amount/01.CAB"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Just create a measure copy and paste for each one.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Then, create a dash like this one and put the two measures:&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really hope I help you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards from Brazil!&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 15 May 2022 10:06:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Percent-of-a-specific-row-from-other-rows-in-a-column/m-p/2515606#M69945</guid>
      <dc:creator>HenriqueReis</dc:creator>
      <dc:date>2022-05-15T10:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Percent of a specific row from other rows in a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Percent-of-a-specific-row-from-other-rows-in-a-column/m-p/2515733#M69962</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a measure that gets you the results in Column E of your screenshot.&amp;nbsp; I didn't quite follow what you meant by 'hierarchy on Level 1' but hopefully this works.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;% of CAB/CAN = 
VAR _Level1 = SELECTEDVALUE('Table'[Level 1])
VAR _CABCAN = 
    IF(_Level1 &amp;lt;= "06", 
        CALCULATE(SUM('Table'[Amount]), 'Table'[Level 1] = "01. CAB - CIFRA DE AFACERI BRUTA"),
        CALCULATE(SUM('Table'[Amount]), 'Table'[Level 1] = "06. CAN - CIFRA DE AFACERI NETA")
    )
VAR _Result = 
    DIVIDE(SUM('Table'[Amount]), _CABCAN)
RETURN
    _Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notice you're getting a result on the total line.&amp;nbsp; You may want to stop that by returning&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt; &lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;_Level1&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;_Result&lt;/SPAN&gt;&lt;SPAN&gt;) instead of _Result&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 May 2022 13:36:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Percent-of-a-specific-row-from-other-rows-in-a-column/m-p/2515733#M69962</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2022-05-15T13:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Percent of a specific row from other rows in a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Percent-of-a-specific-row-from-other-rows-in-a-column/m-p/2516406#M70000</link>
      <description>&lt;P&gt;Thank you, Paul! Is what I wanted!&lt;/P&gt;&lt;P&gt;I liked your idea with &amp;lt;="6"&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 06:08:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Percent-of-a-specific-row-from-other-rows-in-a-column/m-p/2516406#M70000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-16T06:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Percent of a specific row from other rows in a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Percent-of-a-specific-row-from-other-rows-in-a-column/m-p/2516412#M70002</link>
      <description>&lt;P&gt;Hello, Henrique! This is also helpfull. Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 06:10:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Percent-of-a-specific-row-from-other-rows-in-a-column/m-p/2516412#M70002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-16T06:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Percent of a specific row from other rows in a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Percent-of-a-specific-row-from-other-rows-in-a-column/m-p/2516546#M70008</link>
      <description>&lt;P&gt;Hi, Again! What I wanted to say about Hierarchy is something like this:&lt;/P&gt;&lt;P&gt;Every row in level 1 has other rows in other Levels. Level 2, for example is a split between Reatil and Online. Then Retail will be splited in level 3 in other types and so on.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 06:50:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Percent-of-a-specific-row-from-other-rows-in-a-column/m-p/2516546#M70008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-16T06:50:37Z</dc:date>
    </item>
  </channel>
</rss>

