<?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: Help on making calculations of columns in a matrix table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-making-calculations-of-columns-in-a-matrix-table/m-p/4128663#M163964</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="799310" data-lia-user-login="Marango" class="lia-mention lia-mention-user"&gt;Marango&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, here are my steps you can follow as a solution.&lt;/P&gt;
&lt;P&gt;(1) This is my test data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2) We can create measures.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Percentage Measure = 
var  _modelos_producci=CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[Cliente]=MAX('Table'[Cliente]) &amp;amp;&amp;amp; 'Table'[Tipo de Venta]="Producción" &amp;amp;&amp;amp; 'Table'[Type2]="Modelos"))
var _modelos_muestra=CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[Cliente]=MAX('Table'[Cliente]) &amp;amp;&amp;amp; 'Table'[Tipo de Venta]="Musetra" &amp;amp;&amp;amp; 'Table'[Type2]="Modelos"))
RETURN DIVIDE(_modelos_producci,_modelos_muestra)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;total unidades = 
var _a=CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[Cliente]=MAX('Table'[Cliente]) &amp;amp;&amp;amp; 'Table'[Type2]="Unidades"))
RETURN DIVIDE(_a,300)&lt;/LI-CODE&gt;
&lt;P&gt;(3) Then the result is as follows.&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;Due to the nature of the matrix, Percentage Measure and total unidades will appear under each category, if you don't want so many duplicates, you can manually scale the columns to hide them. Or display them as visual objects in a table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Sep 2024 02:35:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-09-02T02:35:13Z</dc:date>
    <item>
      <title>Help on making calculations of columns in a matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-making-calculations-of-columns-in-a-matrix-table/m-p/4126150#M163855</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;to make it ilustrative, I made&amp;nbsp; this Matrix table so In the cloumns the first raw is divided in "MUESTRAS", "DUPS" AND "PRODUCCIÓN", each one has two quantities "modelos" and "unidades". I need to make some calculations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;1) need to see the&amp;nbsp; percentage of how many&amp;nbsp; "mdelos-producción" are from&amp;nbsp; "modelos-muestras", in excel I will just do this : (modelos producción)cell / (modelos muestras)cell -- and change the number to %&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) I need to do also the following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;total "unidades"/ 300&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it would be great if I could add it in the same matrix table, but if I need to do it separately I can make it, but really need this two KPIS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!@links to meme&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 03:58:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-making-calculations-of-columns-in-a-matrix-table/m-p/4126150#M163855</guid>
      <dc:creator>Marango</dc:creator>
      <dc:date>2024-08-30T03:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help on making calculations of columns in a matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-making-calculations-of-columns-in-a-matrix-table/m-p/4126348#M163863</link>
      <description>&lt;P&gt;Please share sample data. and desired output for validation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 06:26:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-making-calculations-of-columns-in-a-matrix-table/m-p/4126348#M163863</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-08-30T06:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help on making calculations of columns in a matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-making-calculations-of-columns-in-a-matrix-table/m-p/4128663#M163964</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="799310" data-lia-user-login="Marango" class="lia-mention lia-mention-user"&gt;Marango&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, here are my steps you can follow as a solution.&lt;/P&gt;
&lt;P&gt;(1) This is my test data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2) We can create measures.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Percentage Measure = 
var  _modelos_producci=CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[Cliente]=MAX('Table'[Cliente]) &amp;amp;&amp;amp; 'Table'[Tipo de Venta]="Producción" &amp;amp;&amp;amp; 'Table'[Type2]="Modelos"))
var _modelos_muestra=CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[Cliente]=MAX('Table'[Cliente]) &amp;amp;&amp;amp; 'Table'[Tipo de Venta]="Musetra" &amp;amp;&amp;amp; 'Table'[Type2]="Modelos"))
RETURN DIVIDE(_modelos_producci,_modelos_muestra)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;total unidades = 
var _a=CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[Cliente]=MAX('Table'[Cliente]) &amp;amp;&amp;amp; 'Table'[Type2]="Unidades"))
RETURN DIVIDE(_a,300)&lt;/LI-CODE&gt;
&lt;P&gt;(3) Then the result is as follows.&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;Due to the nature of the matrix, Percentage Measure and total unidades will appear under each category, if you don't want so many duplicates, you can manually scale the columns to hide them. Or display them as visual objects in a table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 02:35:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-making-calculations-of-columns-in-a-matrix-table/m-p/4128663#M163964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-02T02:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help on making calculations of columns in a matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-making-calculations-of-columns-in-a-matrix-table/m-p/4138496#M164401</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;sorry for my late reply. I am not able to upload my dar base so I am sending a wetransfer with the PBIX and an excel file with the same date. in the&amp;nbsp; excel in the "results" sheet I highlighted in yellow what I want to get.&lt;/P&gt;&lt;P&gt;&lt;A href="https://we.tl/t-t5mMhi0JmC?utm_campaign=TRN_TDL_05&amp;amp;utm_source=sendgrid&amp;amp;utm_medium=email&amp;amp;trk=TRN_TDL_05" target="_blank"&gt;&lt;SPAN&gt;https://we.tl/t-t5mMhi0JmC&lt;/SPAN&gt; &lt;/A&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 22:32:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-making-calculations-of-columns-in-a-matrix-table/m-p/4138496#M164401</guid>
      <dc:creator>Marango</dc:creator>
      <dc:date>2024-09-06T22:32:58Z</dc:date>
    </item>
  </channel>
</rss>

