<?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 Help with SSRS Expression in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Help-with-SSRS-Expression/m-p/4084755#M36312</link>
    <description>&lt;P&gt;I have 2 datasets in my report but using a common table. dataset 1 is named XXX and dataset 2 is named &lt;SPAN class=""&gt;UNKNOWN .&amp;nbsp;&lt;/SPAN&gt;I have a column cell_1 with this ssrs lookup expression from dataset XXX&lt;/P&gt;&lt;P&gt;=Sum(Fields!total_complete_1_Count.Value, &lt;SPAN class=""&gt;"XXX"&lt;/SPAN&gt;) + Sum(Fields!total_complete_2_Count.Value, &lt;SPAN class=""&gt;"XXX"&lt;/SPAN&gt;) + Sum(Fields!total_complete_3_Count.Value, &lt;SPAN class=""&gt;"XXX"&lt;/SPAN&gt;) and&lt;/P&gt;&lt;P&gt;&amp;nbsp;another column cell_2 from Unknown dataset with this expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum(Fields!total_complete_1_Count.Value) + Sum(Fields!total_complete_2_Count.Value) + Sum(Fields!total_complete_3_Count.Value).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to divide cell_1 by cell_2.&amp;nbsp; XXX EXPRESSION DISPLAYS correctly but unknown displays a wrong value&lt;/P&gt;&lt;P&gt;=Sum(Fields!total_complete_1_Count.Value, &lt;SPAN class=""&gt;"XXX"&lt;/SPAN&gt;) + Sum(Fields!total_complete_2_Count.Value, &lt;SPAN class=""&gt;"XXX"&lt;/SPAN&gt;) + Sum(Fields!total_complete_3_Count.Value, &lt;SPAN class=""&gt;"XXX"&lt;/SPAN&gt;) /&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum(Fields!total_complete_1_Count.Value, &lt;SPAN class=""&gt;"UNKNOWN"&lt;/SPAN&gt;) + Sum(Fields!total_complete_2_Count.Value, &lt;SPAN class=""&gt;"UNKNOWN"&lt;/SPAN&gt;) + Sum(Fields!total_complete_3_Count.Value, &lt;SPAN class=""&gt;"UNKNOWN"&lt;/SPAN&gt;).&lt;BR /&gt;The value for cell displays correctly but cell 2 does not so the result is wrong. I have also tried to use the numerator and denominator in text boxes properly named and then call them in this expression&lt;BR /&gt;=CD(Reportitems!XXX_Sum.Value) /&amp;nbsp;CD(Reportitems!UNKNOWN_Sum.Value).&amp;nbsp;&lt;/P&gt;&lt;P&gt;THESE ARE THE TEXT BOX NAMES&amp;nbsp;XXX_Sum AND&amp;nbsp;UNKNOWN_Sum.&lt;/P&gt;&lt;P&gt;I am not sure what I am doing wrong&lt;/P&gt;</description>
    <pubDate>Tue, 06 Aug 2024 16:35:46 GMT</pubDate>
    <dc:creator>miwundu</dc:creator>
    <dc:date>2024-08-06T16:35:46Z</dc:date>
    <item>
      <title>Help with SSRS Expression</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Help-with-SSRS-Expression/m-p/4084755#M36312</link>
      <description>&lt;P&gt;I have 2 datasets in my report but using a common table. dataset 1 is named XXX and dataset 2 is named &lt;SPAN class=""&gt;UNKNOWN .&amp;nbsp;&lt;/SPAN&gt;I have a column cell_1 with this ssrs lookup expression from dataset XXX&lt;/P&gt;&lt;P&gt;=Sum(Fields!total_complete_1_Count.Value, &lt;SPAN class=""&gt;"XXX"&lt;/SPAN&gt;) + Sum(Fields!total_complete_2_Count.Value, &lt;SPAN class=""&gt;"XXX"&lt;/SPAN&gt;) + Sum(Fields!total_complete_3_Count.Value, &lt;SPAN class=""&gt;"XXX"&lt;/SPAN&gt;) and&lt;/P&gt;&lt;P&gt;&amp;nbsp;another column cell_2 from Unknown dataset with this expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum(Fields!total_complete_1_Count.Value) + Sum(Fields!total_complete_2_Count.Value) + Sum(Fields!total_complete_3_Count.Value).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to divide cell_1 by cell_2.&amp;nbsp; XXX EXPRESSION DISPLAYS correctly but unknown displays a wrong value&lt;/P&gt;&lt;P&gt;=Sum(Fields!total_complete_1_Count.Value, &lt;SPAN class=""&gt;"XXX"&lt;/SPAN&gt;) + Sum(Fields!total_complete_2_Count.Value, &lt;SPAN class=""&gt;"XXX"&lt;/SPAN&gt;) + Sum(Fields!total_complete_3_Count.Value, &lt;SPAN class=""&gt;"XXX"&lt;/SPAN&gt;) /&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum(Fields!total_complete_1_Count.Value, &lt;SPAN class=""&gt;"UNKNOWN"&lt;/SPAN&gt;) + Sum(Fields!total_complete_2_Count.Value, &lt;SPAN class=""&gt;"UNKNOWN"&lt;/SPAN&gt;) + Sum(Fields!total_complete_3_Count.Value, &lt;SPAN class=""&gt;"UNKNOWN"&lt;/SPAN&gt;).&lt;BR /&gt;The value for cell displays correctly but cell 2 does not so the result is wrong. I have also tried to use the numerator and denominator in text boxes properly named and then call them in this expression&lt;BR /&gt;=CD(Reportitems!XXX_Sum.Value) /&amp;nbsp;CD(Reportitems!UNKNOWN_Sum.Value).&amp;nbsp;&lt;/P&gt;&lt;P&gt;THESE ARE THE TEXT BOX NAMES&amp;nbsp;XXX_Sum AND&amp;nbsp;UNKNOWN_Sum.&lt;/P&gt;&lt;P&gt;I am not sure what I am doing wrong&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 16:35:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Help-with-SSRS-Expression/m-p/4084755#M36312</guid>
      <dc:creator>miwundu</dc:creator>
      <dc:date>2024-08-06T16:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SSRS Expression</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Help-with-SSRS-Expression/m-p/4085719#M36322</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511816" data-lia-user-login="miwundu" class="lia-mention lia-mention-user"&gt;miwundu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the expression you provided, I created the following sample data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;In Report builder I have the following two Dataset:.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I use the following expression to find dataset xxx.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=Sum(Fields!total_complete_1_Count.Value, "XXX") + Sum(Fields!total_complete_2_Count.Value, "XXX") + Sum(Fields!total_complete_3_Count.Value, "XXX")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I use the following expression to find dataset xxx and dataset UNKNOWN:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;= (Sum(Fields!total_complete_1_Count.Value, "XXX") + Sum(Fields!total_complete_2_Count.Value, "XXX") + Sum(Fields!total_complete_3_Count.Value, "XXX")) / 
  (Sum(Fields!total_complete_1_Count.Value, "UNKNOWN") + Sum(Fields!total_complete_2_Count.Value, "UNKNOWN") + Sum(Fields!total_complete_3_Count.Value, "UNKNOWN"))
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The results are as follows:&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 style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Jianpeng &lt;/SPAN&gt;&lt;SPAN&gt;Li&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 03:54:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Help-with-SSRS-Expression/m-p/4085719#M36322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-07T03:54:36Z</dc:date>
    </item>
  </channel>
</rss>

