<?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 percentage of each Category in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-percentage-of-each-Category/m-p/4402371#M174757</link>
    <description>&lt;P&gt;Dear&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp; thank you for your replay but the structures of the table that i have attached isn't the same&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, 10 Feb 2025 07:32:12 GMT</pubDate>
    <dc:creator>dofrancis3</dc:creator>
    <dc:date>2025-02-10T07:32:12Z</dc:date>
    <item>
      <title>calculate the percentage of each Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-percentage-of-each-Category/m-p/4401650#M174737</link>
      <description>&lt;P&gt;Dear Colleagues,&lt;/P&gt;&lt;P&gt;Please, I would like your support!&lt;/P&gt;&lt;P&gt;As you can see, I have two tables (&lt;EM&gt;Table_1 and Table_2&lt;/EM&gt;) so, I'd like to calculate the percentage of each Category (table_1) according to each status (Table_2).&lt;/P&gt;&lt;P&gt;please see:&amp;nbsp;&lt;A title="Excel file" href="https://docs.google.com/spreadsheets/d/1u-eWhVPJhTvuFKx9DO9eWt65w7wSnn_o4twDuHRyPrg/edit?usp=drive_link" target="_self"&gt;https://docs.google.com/spreadsheets/d/1u-eWhVPJhTvuFKx9DO9eWt65w7wSnn_o4twDuHRyPrg/edit?usp=drive_link&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bellow are the formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P1= ZD &lt;STRONG&gt;DIVIDE&lt;/STRONG&gt; P1 (12-23 months) &lt;STRONG&gt;+&lt;/STRONG&gt; P1 (24-59 months)&lt;/P&gt;&lt;P&gt;P3= Uim &lt;STRONG&gt;DIVIDE&lt;/STRONG&gt; P3 (12-23 months) &lt;STRONG&gt;+&lt;/STRONG&gt; P3 (24-59 months)&lt;/P&gt;&lt;P&gt;MC1= ZD &lt;STRONG&gt;DIVIDE&lt;/STRONG&gt; MC1 (12-23 months) &lt;STRONG&gt;+&lt;/STRONG&gt; MC1 (24-59 months)&lt;/P&gt;&lt;P&gt;MC2= Uim &lt;STRONG&gt;DIVIDE&lt;/STRONG&gt; MC2 (12-23 months) &lt;STRONG&gt;+&lt;/STRONG&gt; MC2 (24-59 months)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Feb 2025 22:52:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-percentage-of-each-Category/m-p/4401650#M174737</guid>
      <dc:creator>dofrancis3</dc:creator>
      <dc:date>2025-02-09T22:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the percentage of each Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-percentage-of-each-Category/m-p/4402287#M174755</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="683724" data-lia-user-login="dofrancis3" class="lia-mention lia-mention-user"&gt;dofrancis3&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since I’m unable to open the link file you shared, I will infer the data structure based on your description and provide the solution. If this is not feasible for you, please feel free to reply!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table_1:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Table_2:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then follow these steps to create the necessary measures:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total_Category = 
SUM(Table_1[12-23 months]) + SUM(Table_1[24-59 months])
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;ZD_Percentage = 
VAR TotalValue = 
    CALCULATE(Table_1[Total_Category], ALLEXCEPT(Table_1, Table_1[Category]))
RETURN 
DIVIDE(
    SUM(Table_2[ZD]),
    TotalValue,
    0
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Uim_Percentage = 
VAR TotalValue = 
    CALCULATE(Table_1[Total_Category], ALLEXCEPT(Table_1, Table_1[Category]))
RETURN
DIVIDE(
    SUM(Table_2[Uim]),
    TotalValue,
    0
)
&lt;/LI-CODE&gt;
&lt;P&gt;Result for your reference:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Joyce&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 07:02:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-percentage-of-each-Category/m-p/4402287#M174755</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-10T07:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the percentage of each Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-percentage-of-each-Category/m-p/4402371#M174757</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp; thank you for your replay but the structures of the table that i have attached isn't the same&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, 10 Feb 2025 07:32:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-percentage-of-each-Category/m-p/4402371#M174757</guid>
      <dc:creator>dofrancis3</dc:creator>
      <dc:date>2025-02-10T07:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the percentage of each Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-percentage-of-each-Category/m-p/4402433#M174761</link>
      <description>&lt;P&gt;This the structure of table_1&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 07:55:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-percentage-of-each-Category/m-p/4402433#M174761</guid>
      <dc:creator>dofrancis3</dc:creator>
      <dc:date>2025-02-10T07:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the percentage of each Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-percentage-of-each-Category/m-p/4404512#M174851</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="683724" data-lia-user-login="dofrancis3" class="lia-mention lia-mention-user"&gt;dofrancis3&lt;/a&gt;&amp;nbsp;, thank you for your feedback.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check the following measures:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;P1_Percentage = 
DIVIDE(
    SUM(Table_2[ZD]),
    SUM(Table_1[P1 (12-23 months)]) + SUM(Table_1[P1 (24-59 months)]),
    0
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;P3_Percentage = 
DIVIDE(
    SUM(Table_2[Uim]),
    SUM(Table_1[P3 (12-23 months)]) + SUM(Table_1[P3 (24-59 months)]),
    0
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;MC1_Percentage = 
DIVIDE(
    SUM(Table_2[ZD]),
    SUM(Table_1[MC1 (12-23 months)]) + SUM(Table_1[MC1 (24-59 months)]),
    0
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;MC2_Percentage = 
DIVIDE(
    SUM(Table_2[Uim]),
    SUM(Table_1[MC2 (12-23 months)]) + SUM(Table_1[MC2 (24-59 months)]),
    0
)
&lt;/LI-CODE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Joyce&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 07:45:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-percentage-of-each-Category/m-p/4404512#M174851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-11T07:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the percentage of each Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-percentage-of-each-Category/m-p/4404773#M174857</link>
      <description>&lt;P&gt;Dear Anonymous&lt;/a&gt;&amp;nbsp;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 09:52:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-the-percentage-of-each-Category/m-p/4404773#M174857</guid>
      <dc:creator>dofrancis3</dc:creator>
      <dc:date>2025-02-11T09:52:34Z</dc:date>
    </item>
  </channel>
</rss>

