<?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: Calculated fields show #Error when placed on Report Builder report. in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Calculated-fields-show-Error-when-placed-on-Report-Builder/m-p/3477753#M31418</link>
    <description>&lt;P&gt;It's hard to say what you are doing wrong, there is not enough detail here. How are you placing the field onto your report - is it in a single text box or in a table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's in a table it should work since calculated fields are calculated once per row. If you have just dragged on a text box it depends how you are aggregating the calculated field. In the example calculation you've given you are returning a string so you would need to use something like a First() or Last() aggregate, not one of the mathematical ones like Sum()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I add a field like the one you've shown&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;It works fine if I use it in a table output&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2023 03:33:42 GMT</pubDate>
    <dc:creator>d_gosbell</dc:creator>
    <dc:date>2023-10-16T03:33:42Z</dc:date>
    <item>
      <title>Calculated fields show #Error when placed on Report Builder report.</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Calculated-fields-show-Error-when-placed-on-Report-Builder/m-p/3475679#M31408</link>
      <description>&lt;P&gt;I hope this is the right forum. This is the forum that comes up when I click the "Forum" button in Report Builder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am finding that the most basic calculated fields show #Error when placed on a report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I am using Microsoft Report Builder 15.0.20073.0&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I am following the instructions at&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/sql/reporting-services/report-data/add-edit-refresh-fields-in-the-report-data-pane-report-builder-and-ssrs?view=sql-server-ver16" target="_blank" rel="noopener"&gt;Add, Edit, Refresh Fields in the Report Data Pane (Report Builder) - SQL Server Reporting Services (SSRS) | Microsoft Learn&lt;/A&gt;.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A calculated field as simple as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;MyCalcField = "Hello"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;shows #Error when placed on a report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;What am I doing wrong?&lt;/LI&gt;&lt;LI&gt;I assume that calculated fields can be placed on reports. Is this correct? Are there limitations or pre-requisites for placing calculated fields on reports?&lt;/LI&gt;&lt;LI&gt;Is it possible to substitute Crystal Reports for Report Builder in SSRS?&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 13 Oct 2023 13:18:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Calculated-fields-show-Error-when-placed-on-Report-Builder/m-p/3475679#M31408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-13T13:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated fields show #Error when placed on Report Builder report.</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Calculated-fields-show-Error-when-placed-on-Report-Builder/m-p/3477753#M31418</link>
      <description>&lt;P&gt;It's hard to say what you are doing wrong, there is not enough detail here. How are you placing the field onto your report - is it in a single text box or in a table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's in a table it should work since calculated fields are calculated once per row. If you have just dragged on a text box it depends how you are aggregating the calculated field. In the example calculation you've given you are returning a string so you would need to use something like a First() or Last() aggregate, not one of the mathematical ones like Sum()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I add a field like the one you've shown&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;It works fine if I use it in a table output&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 03:33:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Calculated-fields-show-Error-when-placed-on-Report-Builder/m-p/3477753#M31418</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2023-10-16T03:33:42Z</dc:date>
    </item>
  </channel>
</rss>

