<?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 How to get % of total for filtered values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-of-total-for-filtered-values/m-p/2617727#M76133</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling to find a way to get a % of grand total for the various years for the chart below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Essentially, I want the year totals to work out a % of the grand total for that year. However, when I use the quick measure it is giving me the the percentage of the overall grand total for all the years summed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do get the % total per years only without having to filter one year at a time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Reece&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jul 2022 14:31:25 GMT</pubDate>
    <dc:creator>PowerBIReece</dc:creator>
    <dc:date>2022-07-04T14:31:25Z</dc:date>
    <item>
      <title>How to get % of total for filtered values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-of-total-for-filtered-values/m-p/2617727#M76133</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling to find a way to get a % of grand total for the various years for the chart below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Essentially, I want the year totals to work out a % of the grand total for that year. However, when I use the quick measure it is giving me the the percentage of the overall grand total for all the years summed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do get the % total per years only without having to filter one year at a time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Reece&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 14:31:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-of-total-for-filtered-values/m-p/2617727#M76133</guid>
      <dc:creator>PowerBIReece</dc:creator>
      <dc:date>2022-07-04T14:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get % of total for filtered values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-of-total-for-filtered-values/m-p/2617750#M76134</link>
      <description>&lt;P&gt;It's giving me this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But I want to see these figures on the combined chart:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 14:34:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-of-total-for-filtered-values/m-p/2617750#M76134</guid>
      <dc:creator>PowerBIReece</dc:creator>
      <dc:date>2022-07-04T14:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get % of total for filtered values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-of-total-for-filtered-values/m-p/2618150#M76160</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408637" data-lia-user-login="PowerBIReece" class="lia-mention lia-mention-user"&gt;PowerBIReece&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Guess you are making use of ALL, please turn that to ALLEXCEPT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Sales = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;orders_[Sales]&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;'Calendar Table'[Year]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Sales = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;orders_[Sales]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;orders_&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar Table'[Year]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Ritesh&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Ritesh&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Mark my post as a solution if it helped you&lt;/FONT&gt;|&lt;FONT color="#000000"&gt;&amp;nbsp;Munde and Kudis (Ladies and Gentlemen) I like your Kudos!!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;!!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;A href="https://www.youtube.com/channel/UCOK8xNgwlypFkU6aCEThCmw" target="_self" rel="nofollow noreferrer noopener"&gt;My YT Channel Dancing With Data&lt;/A&gt;&amp;nbsp;!!&amp;nbsp;&lt;A href="https://www.linkedin.com/in/ritesh-bisht-22238913/" target="_self" rel="nofollow noreferrer noopener"&gt;Connect on Linkedin&lt;/A&gt;&amp;nbsp;!!&lt;A href="https://www.youtube.com/watch?v=XE-HehSTmGo&amp;amp;list=PL9z26CJ-fucFCNaSAKlBujSFY22tZhcDr" target="_self" rel="nofollow noopener noreferrer"&gt;Power BI for Tableau Users&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Jul 2022 17:19:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-of-total-for-filtered-values/m-p/2618150#M76160</guid>
      <dc:creator>ribisht17</dc:creator>
      <dc:date>2022-07-05T17:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get % of total for filtered values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-of-total-for-filtered-values/m-p/2620478#M76290</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408637" data-lia-user-login="PowerBIReece" class="lia-mention lia-mention-user"&gt;PowerBIReece&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly close the thread if the answer was useful or else let us know the challenge.&lt;/P&gt;&lt;P&gt;It will help the community to get to the answer directly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ritesh&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 16:40:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-of-total-for-filtered-values/m-p/2620478#M76290</guid>
      <dc:creator>ribisht17</dc:creator>
      <dc:date>2022-07-05T16:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get % of total for filtered values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-of-total-for-filtered-values/m-p/2622184#M76423</link>
      <description>&lt;P&gt;Hi Ritesh,&lt;/P&gt;&lt;P&gt;I have not yet managed to resolve this.&lt;/P&gt;&lt;P&gt;First off, I’d like to apologize for not being able to post my PBIX file because this confidential data I am working with.&lt;/P&gt;&lt;P&gt;I am currently working with survey data, the questions give the respondent a few options in terms of easy, difficult etc and this is what I’m trying to plot below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The categories are split across the different years.&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;The issue I’m having is that when I select to reflect values as a % of grand total it gives me the following output:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, these figures are &lt;STRONG&gt;incorrect&lt;/STRONG&gt;, because I am looking for a way to do this across the year, not the entire sample.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for example this is the same chart filtered by only 2022:&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;These are the % figures I need to see on the chart above.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 10:26:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-of-total-for-filtered-values/m-p/2622184#M76423</guid>
      <dc:creator>PowerBIReece</dc:creator>
      <dc:date>2022-07-06T10:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get % of total for filtered values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-of-total-for-filtered-values/m-p/2622188#M76425</link>
      <description>&lt;P&gt;Apologies&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="369860" data-lia-user-login="ribisht17" class="lia-mention lia-mention-user"&gt;ribisht17&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 10:28:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-of-total-for-filtered-values/m-p/2622188#M76425</guid>
      <dc:creator>PowerBIReece</dc:creator>
      <dc:date>2022-07-06T10:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get % of total for filtered values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-of-total-for-filtered-values/m-p/2623947#M76566</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408637" data-lia-user-login="PowerBIReece" class="lia-mention lia-mention-user"&gt;PowerBIReece&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I have created a simple sample, please refer to my pbix file to see it helps you.&lt;/P&gt;
&lt;P&gt;Create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR _SUBJECT =
    SELECTEDVALUE ( 'Table'[SUBJECT] )
VAR _YEAR =
    SELECTEDVALUE ( 'Table'[YEAR] )
VAR _SUMALL =
    CALCULATE (
        SUM ( 'Table'[VALUE] ),
        FILTER ( ALL ( 'Table' ), 'Table'[SUBJECT] = _SUBJECT &amp;amp;&amp;amp; 'Table'[YEAR] = _YEAR )
    )
VAR _SUMYEAR =
    CALCULATE (
        SUM ( 'Table'[VALUE] ),
        FILTER ( ALL ( 'Table' ), 'Table'[YEAR] = _YEAR )
    )
RETURN
    _SUMALL / _SUMYEAR
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If I have misunderstood your meaning, please provide a simple sample and desired output like I have provided.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 05:45:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-of-total-for-filtered-values/m-p/2623947#M76566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-07T05:45:09Z</dc:date>
    </item>
  </channel>
</rss>

