<?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: Aggregation issue with a string measure on % of grand total calculations in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-issue-with-a-string-measure-on-of-grand-total/m-p/3788625#M148028</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="706177" data-lia-user-login="Tina91" class="lia-mention lia-mention-user"&gt;Tina91&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to attached sample file with a proposed solution.&lt;/P&gt;
&lt;P&gt;Here I'm aggregating the perentages only. Properly aggregating other metrics in the same table visual could be tricky. Please let me know what is you next step.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2024 05:36:51 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2024-03-25T05:36:51Z</dc:date>
    <item>
      <title>Aggregation issue with a string measure on % of grand total calculations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-issue-with-a-string-measure-on-of-grand-total/m-p/3788108#M148008</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I am having one issue aggregating on report. I have a 'Amount' and percentage of a grand total columns on 'Amount'&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;field. My requirement is if average value in % is &amp;lt; 2% , display State as 'Others' and after that aggregation should happen based on&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;new states.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Below are my calculations/measures:&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;Column Name: Amount&lt;BR /&gt;% of Total_Amount = sum(Sheet9[AVG]) // Note:&amp;nbsp; displayed as '% of grand total'&lt;BR /&gt;m_State = max(Sheet9[State])&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;m_pct_value = Sheet9[% of Total_Amount]/ calculate(Sheet9[% of Total_Amount],ALLSELECTED())&lt;BR /&gt;m_Updated_State = switch ( TRUE(), [m_pct_value] &amp;lt;= 0.02, "Others" , Sheet9[m_State] )&amp;nbsp; // Note: measure don't allow reference to table.column, so had to create a measure 'm_state' above&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample Data file and this PBI Report s under this location (I don't see attach option)&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/drive/folders/14VkqgAHUkuow43oAlhyS0R_FlZ3bSl1g?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/drive/folders/14VkqgAHUkuow43oAlhyS0R_FlZ3bSl1g?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I dis-select 'State' and keep updated value of State (measure: m_updated_state), I am expecting proper aggregation on all states, including new value 'Others'. If you observe closely depending on aggregation on&amp;nbsp;m_State&amp;nbsp; (min/max) , it brings that State on subtotals in this case 'CA'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 24 Mar 2024 16:17:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-issue-with-a-string-measure-on-of-grand-total/m-p/3788108#M148008</guid>
      <dc:creator>Tina91</dc:creator>
      <dc:date>2024-03-24T16:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation issue with a string measure on % of grand total calculations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-issue-with-a-string-measure-on-of-grand-total/m-p/3788139#M148009</link>
      <description>&lt;LI-CODE lang="markup"&gt;and after that aggregation should happen based on new states.&lt;/LI-CODE&gt;
&lt;P&gt;What aggregation? What is your expected outcome?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that you cannot measure a measure.&amp;nbsp; Materialize it, or create a new measure that includes the entire business logic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Mar 2024 17:42:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-issue-with-a-string-measure-on-of-grand-total/m-p/3788139#M148009</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-24T17:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation issue with a string measure on % of grand total calculations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-issue-with-a-string-measure-on-of-grand-total/m-p/3788169#M148011</link>
      <description>&lt;P&gt;Final output should be based on each state including 'Others'.&lt;/P&gt;&lt;P&gt;So here instead of 'State', we need to aggregate based on 'm_state_updated'.&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;&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>Sun, 24 Mar 2024 19:05:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-issue-with-a-string-measure-on-of-grand-total/m-p/3788169#M148011</guid>
      <dc:creator>Tina91</dc:creator>
      <dc:date>2024-03-24T19:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation issue with a string measure on % of grand total calculations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-issue-with-a-string-measure-on-of-grand-total/m-p/3788625#M148028</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="706177" data-lia-user-login="Tina91" class="lia-mention lia-mention-user"&gt;Tina91&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to attached sample file with a proposed solution.&lt;/P&gt;
&lt;P&gt;Here I'm aggregating the perentages only. Properly aggregating other metrics in the same table visual could be tricky. Please let me know what is you next step.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 05:36:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-issue-with-a-string-measure-on-of-grand-total/m-p/3788625#M148028</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-03-25T05:36:51Z</dc:date>
    </item>
  </channel>
</rss>

