<?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: Scope in Sum Report Builder in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Scope-in-Sum-Report-Builder/m-p/3296652#M30212</link>
    <description>&lt;P&gt;That error would imply that your row group in your report (see the image below) is not called "Team" but has some other name. If this is the case you can either go into the group properties and rename it or you can use the group name in your expression.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2023 01:22:04 GMT</pubDate>
    <dc:creator>d_gosbell</dc:creator>
    <dc:date>2023-06-22T01:22:04Z</dc:date>
    <item>
      <title>Scope in Sum Report Builder</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Scope-in-Sum-Report-Builder/m-p/3295434#M30208</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to define expressions for a matrix within report builder and I keep getting errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what the Matrix should look like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Note that the value for Percent for each group, called "Team" in my dataset, is the percent of the total, such as 52/196 = 26.53%, and the percent allocated to each value of "Yes" and "No" is the percent within that specific Team.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Report Builder I have an expression set up that gives me the correct percentage for the total of each Team, a.k.a. the values in Gray, but whenever I define a scope of Team within my sums for values of Yes and No, it gives me the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"The 'Value' expression for the text box 'Count2' has a scope parameter that is not valid for an aggregate function. The scope parameter must be set to a string constant that is equal to either the name of a containing group, the name of a containing data region, or the name of a dataset."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My expression that gives me the correct percentage for the total of each Team is&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(Fields!Count.Value) / Sum(Fields!Count.Value, "DataSet1")&lt;/LI-CODE&gt;&lt;P&gt;in which "Count" is just a simple field that is always 1, allowing me to sum that field and imitate a Count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My expression that gives me the error for the percent within each Team is:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(Fields!Count.Value) / Sum(Fields!Count.Value, "Team")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that the field for Team is called "Team" because i am using that scope in another matrix and it gives me the correct values. I just am not sure where I am going wrong. Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 11:44:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Scope-in-Sum-Report-Builder/m-p/3295434#M30208</guid>
      <dc:creator>NJ81858</dc:creator>
      <dc:date>2023-06-21T11:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Scope in Sum Report Builder</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Scope-in-Sum-Report-Builder/m-p/3296652#M30212</link>
      <description>&lt;P&gt;That error would imply that your row group in your report (see the image below) is not called "Team" but has some other name. If this is the case you can either go into the group properties and rename it or you can use the group name in your expression.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 01:22:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Scope-in-Sum-Report-Builder/m-p/3296652#M30212</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2023-06-22T01:22:04Z</dc:date>
    </item>
  </channel>
</rss>

