<?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: Como puedo hacer para que en una matriz me diga el % de un dato por cada mes en vez del total. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Como-puedo-hacer-para-que-en-una-matriz-me-diga-el-de-un-dato/m-p/4421895#M175557</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;To ensure that the percentage of hours worked is calculated for each month individually, rather than across all months, you need a DAX measure that normalizes the total of each month to 100%. The following measure achieves this by calculating the sum of hours worked per employee per business line and dividing it by the total hours worked within the month.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;% Horas por Mes = 
VAR TotalMes = 
    CALCULATE(
        SUM('Tabla'[Horas realizadas]),
        ALLEXCEPT('Tabla', 'Tabla'[Date (mes)])
    )
RETURN
    DIVIDE(SUM('Tabla'[Horas realizadas]), TotalMes, 0)
&lt;/LI-CODE&gt;
&lt;P&gt;This measure works by first calculating TotalMes, which aggregates all hours worked within a specific month while keeping the month filter but ignoring employee and business line filters. Then, it divides the hours worked by each employee in each business line by the total hours of the month, ensuring that the sum of percentages for each month is 100%. The third argument in DIVIDE prevents division errors by returning 0 when the denominator is zero. Applying this measure in the matrix visual, replacing the current "Horas realizadas" field, will display the correct percentage breakdown by month.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2025 12:17:16 GMT</pubDate>
    <dc:creator>DataNinja777</dc:creator>
    <dc:date>2025-02-21T12:17:16Z</dc:date>
    <item>
      <title>Como puedo hacer para que en una matriz me diga el % de un dato por cada mes en vez del total.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Como-puedo-hacer-para-que-en-una-matriz-me-diga-el-de-un-dato/m-p/4421525#M175544</link>
      <description>&lt;P&gt;Como puedo hacer para que en una matriz me diga el % de un dato por cada mes en vez del total (que el total de cada mes sea el 100%).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Contexto:&lt;BR /&gt;Tengo esta tabla en la que muestro las horas realizadas por nombre del trabajador por meses y lineas de negocio.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;Filas: Nombre&lt;BR /&gt;Columnas: Date (mes), Lineas de negocio&lt;BR /&gt;Valores: Horas realizadas (medida)&lt;BR /&gt;&lt;BR /&gt;Y lo que me gustaria seria mostrar la misma tabla pero las horas realizadas en % por mes, el total de cada mes seria el 100%.&lt;BR /&gt;Lo que he probado es a hacer esto: mostrar valor como -&amp;gt; porcentaje del total de fila&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Pero el resultado no ha sido lo que yo queria, me hace el % sobre el total (todos los meses) y yo quiero que me haga el total sobre cada mes.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Porfavor ayuda, no se como hacerlo.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 08:49:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Como-puedo-hacer-para-que-en-una-matriz-me-diga-el-de-un-dato/m-p/4421525#M175544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-21T08:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Como puedo hacer para que en una matriz me diga el % de un dato por cada mes en vez del total.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Como-puedo-hacer-para-que-en-una-matriz-me-diga-el-de-un-dato/m-p/4421895#M175557</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;To ensure that the percentage of hours worked is calculated for each month individually, rather than across all months, you need a DAX measure that normalizes the total of each month to 100%. The following measure achieves this by calculating the sum of hours worked per employee per business line and dividing it by the total hours worked within the month.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;% Horas por Mes = 
VAR TotalMes = 
    CALCULATE(
        SUM('Tabla'[Horas realizadas]),
        ALLEXCEPT('Tabla', 'Tabla'[Date (mes)])
    )
RETURN
    DIVIDE(SUM('Tabla'[Horas realizadas]), TotalMes, 0)
&lt;/LI-CODE&gt;
&lt;P&gt;This measure works by first calculating TotalMes, which aggregates all hours worked within a specific month while keeping the month filter but ignoring employee and business line filters. Then, it divides the hours worked by each employee in each business line by the total hours of the month, ensuring that the sum of percentages for each month is 100%. The third argument in DIVIDE prevents division errors by returning 0 when the denominator is zero. Applying this measure in the matrix visual, replacing the current "Horas realizadas" field, will display the correct percentage breakdown by month.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 12:17:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Como-puedo-hacer-para-que-en-una-matriz-me-diga-el-de-un-dato/m-p/4421895#M175557</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2025-02-21T12:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Como puedo hacer para que en una matriz me diga el % de un dato por cada mes en vez del total.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Como-puedo-hacer-para-que-en-una-matriz-me-diga-el-de-un-dato/m-p/4585376#M175674</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;May I ask if you have gotten this issue resolved?&lt;BR /&gt;If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster . &lt;BR /&gt;Thank you very much for your kind cooperation!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Dengliang Li&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 01:32:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Como-puedo-hacer-para-que-en-una-matriz-me-diga-el-de-un-dato/m-p/4585376#M175674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-26T01:32:41Z</dc:date>
    </item>
  </channel>
</rss>

