<?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 Adequate Percentile of share on a matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adequate-Percentile-of-share-on-a-matrix/m-p/3561447#M137279</link>
    <description>&lt;P&gt;Hi, I need to fix this code DAX to exibit the last image below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;% Share vendas brutas Agrupável =&lt;BR /&gt;VAR AllVendasBrutas =&lt;BR /&gt;CALCULATE ( [Vendas Brutas], ALL ( dLocalidades ) )&lt;BR /&gt;RETURN&lt;BR /&gt;DIVIDE ( [Vendas Brutas], AllVendasBrutas )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before:&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;I need the measure to show the share like this image bellow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The share for continent is working, but I need that the share for category shows values that sum is 100%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any doubts, reply this post. Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2023 16:29:49 GMT</pubDate>
    <dc:creator>JRVianna</dc:creator>
    <dc:date>2023-11-30T16:29:49Z</dc:date>
    <item>
      <title>Adequate Percentile of share on a matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adequate-Percentile-of-share-on-a-matrix/m-p/3561447#M137279</link>
      <description>&lt;P&gt;Hi, I need to fix this code DAX to exibit the last image below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;% Share vendas brutas Agrupável =&lt;BR /&gt;VAR AllVendasBrutas =&lt;BR /&gt;CALCULATE ( [Vendas Brutas], ALL ( dLocalidades ) )&lt;BR /&gt;RETURN&lt;BR /&gt;DIVIDE ( [Vendas Brutas], AllVendasBrutas )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before:&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;I need the measure to show the share like this image bellow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The share for continent is working, but I need that the share for category shows values that sum is 100%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any doubts, reply this post. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 16:29:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adequate-Percentile-of-share-on-a-matrix/m-p/3561447#M137279</guid>
      <dc:creator>JRVianna</dc:creator>
      <dc:date>2023-11-30T16:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adequate Percentile of share on a matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adequate-Percentile-of-share-on-a-matrix/m-p/3562784#M137328</link>
      <description>&lt;P&gt;&lt;SPAN&gt;To achieve this, you can use a different approach for calculating the % Share vendas brutas Agrupável for categories. You want the sum of this measure to be 100% for each category. Here's a modified version of your DAX code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;% Share vendas brutas Agrupável =&lt;BR /&gt;VAR AllVendasBrutas =&lt;BR /&gt;CALCULATE([Vendas Brutas], ALL(dLocalidades))&lt;/P&gt;&lt;P&gt;VAR TotalSalesByCategory =&lt;BR /&gt;CALCULATE([Vendas Brutas], ALLEXCEPT('YourTable', 'YourTable'[Category]))&lt;/P&gt;&lt;P&gt;RETURN&lt;BR /&gt;DIVIDE([Vendas Brutas], IF(ISFILTERED('YourTable'[Category]), TotalSalesByCategory, AllVendasBrutas))&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 09:46:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adequate-Percentile-of-share-on-a-matrix/m-p/3562784#M137328</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2023-12-01T09:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adequate Percentile of share on a matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adequate-Percentile-of-share-on-a-matrix/m-p/3563751#M137379</link>
      <description>&lt;P&gt;It didn't work, but with a slightly change it works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;% Share vendas brutas Agrupável =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;ShareContinente&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Vendas Brutas]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dLocalidades&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;ShareCategoria&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Vendas Brutas]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dCategoriaProdutos&lt;/SPAN&gt;&lt;SPAN&gt;[Categoria]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Vendas Brutas]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISFILTERED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dCategoriaProdutos&lt;/SPAN&gt;&lt;SPAN&gt;[Categoria]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;ShareCategoria&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ShareContinente&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Dec 2023 21:18:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adequate-Percentile-of-share-on-a-matrix/m-p/3563751#M137379</guid>
      <dc:creator>JRVianna</dc:creator>
      <dc:date>2023-12-01T21:18:21Z</dc:date>
    </item>
  </channel>
</rss>

