<?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: Percent of total column with dynamic filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-total-column-with-dynamic-filter/m-p/1865219#M39965</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try the following measure, you need to remove the filter on the SUB_CATEGIORY COLUMN&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Vol Mix % = 
DIVIDE(
    [Sum of Volume (SU)],
    CALCULATE(
        [Sum of Volume (SU)],
        ALLSELECTED(Consolidatedtable[2.9.8 SUB CATEGORY_EN])
    )
)&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 26 May 2021 14:36:45 GMT</pubDate>
    <dc:creator>Fowmy</dc:creator>
    <dc:date>2021-05-26T14:36:45Z</dc:date>
    <item>
      <title>Percent of total column with dynamic filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-total-column-with-dynamic-filter/m-p/1865113#M39959</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm new to Power Pivot ")&lt;/P&gt;&lt;P&gt;trying to calculat the percantage of total column for several columns (years).&lt;/P&gt;&lt;P&gt;when i use the "ALLSELECTED" formula, i get the percentage of the&amp;nbsp;&lt;STRONG&gt;Grand total&lt;/STRONG&gt; and not by column.&lt;/P&gt;&lt;P&gt;Help would be much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the formula im using:&lt;/P&gt;&lt;P&gt;&lt;!-- StartFragment  --&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="cf0"&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN class="cf1"&gt;([Sum of Volume (SU)],&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class="cf1"&gt;([Sum of Volume (SU)],&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN class="cf1"&gt;(Consolidatedtable)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;!-- EndFragment  --&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 13:56:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-total-column-with-dynamic-filter/m-p/1865113#M39959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-26T13:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of total column with dynamic filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-total-column-with-dynamic-filter/m-p/1865169#M39961</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you share a screenshot or p[rovide sample data and the expected results?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 14:22:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-total-column-with-dynamic-filter/m-p/1865169#M39961</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-05-26T14:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of total column with dynamic filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-total-column-with-dynamic-filter/m-p/1865203#M39963</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;total colums should amount to 100%.&lt;/P&gt;&lt;P&gt;The Pivot table is combined (appended) of two tables (2020 / 2021).&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 14:31:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-total-column-with-dynamic-filter/m-p/1865203#M39963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-26T14:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of total column with dynamic filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-total-column-with-dynamic-filter/m-p/1865219#M39965</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try the following measure, you need to remove the filter on the SUB_CATEGIORY COLUMN&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Vol Mix % = 
DIVIDE(
    [Sum of Volume (SU)],
    CALCULATE(
        [Sum of Volume (SU)],
        ALLSELECTED(Consolidatedtable[2.9.8 SUB CATEGORY_EN])
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 26 May 2021 14:36:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-total-column-with-dynamic-filter/m-p/1865219#M39965</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-05-26T14:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of total column with dynamic filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-total-column-with-dynamic-filter/m-p/1865279#M39966</link>
      <description>&lt;P&gt;so basically i need to add a filter reference in the CALCULATE formula that is the same as the dimension ? meaning if i change the dimension from SUB-CATEGORY to CATEGORY, the formula will not work. Is there a different way to calculate the percentage the will be dynamic for any column\row change in the pivot table?&lt;/P&gt;&lt;P&gt;thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 15:15:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-total-column-with-dynamic-filter/m-p/1865279#M39966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-26T15:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of total column with dynamic filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-total-column-with-dynamic-filter/m-p/1865359#M39967</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not possible to keep it dynamic as you need to remove filter only on the rows and keep the filter on the columns.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;if you apply ALLSELECTED() without parameter as an argument to CALCULATE, it will remove all the filters within the visual.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;the solution is to create individual measures.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;hope it clarified&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 15:59:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-total-column-with-dynamic-filter/m-p/1865359#M39967</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-05-26T15:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of total column with dynamic filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-total-column-with-dynamic-filter/m-p/1865572#M39973</link>
      <description>&lt;P&gt;I tried creating&amp;nbsp;&lt;SPAN&gt;individual measures for each year, but now i get duplicate fields,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;under each year column i get both years data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this is the DAX i used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;please HELP!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;!-- StartFragment  --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="cf0"&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN class="cf1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;SUMX&lt;/SPAN&gt;&lt;SPAN class="cf1"&gt;(Conso,[Total Volume 2020]),&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class="cf1"&gt;([Total Volume 2020],&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN class="cf1"&gt;()))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;!-- EndFragment  --&gt;&lt;/SPAN&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 18:49:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-total-column-with-dynamic-filter/m-p/1865572#M39973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-26T18:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of total column with dynamic filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-total-column-with-dynamic-filter/m-p/1865581#M39974</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Add an IF condition:&lt;BR /&gt;If ( selectedvalue(Table[Year]) = 2020,&amp;nbsp;&lt;BR /&gt;&lt;SPAN class="cf0"&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN class="cf1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;SUMX&lt;/SPAN&gt;&lt;SPAN class="cf1"&gt;(Conso,[Total Volume 2020]),&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class="cf1"&gt;([Total Volume 2020],&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN class="cf1"&gt;()))&lt;/SPAN&gt;&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 18:55:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-total-column-with-dynamic-filter/m-p/1865581#M39974</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-05-26T18:55:33Z</dc:date>
    </item>
  </channel>
</rss>

