<?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: Report Builder Error in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Report-Builder-Error/m-p/3300639#M30249</link>
    <description>&lt;P&gt;The DIVIDE function in DAX will check for 0 values on the denominator and will return a blank (which will then probably get filtered out) so you probably need to do the same thing in your report expressions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I would suggest just referencing the same measure in your paginated report, then you only have one place to maintain the logic.&lt;/P&gt;</description>
    <pubDate>Sat, 24 Jun 2023 06:50:44 GMT</pubDate>
    <dc:creator>d_gosbell</dc:creator>
    <dc:date>2023-06-24T06:50:44Z</dc:date>
    <item>
      <title>Report Builder Error</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Report-Builder-Error/m-p/3298337#M30225</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a calculated field in Power BI Desktop that I am trying to match in Power BI Report Builder and it is working for some categories but not for others, and I'm not sure either where I am going wrong, or where I can find more information about the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what the column looks like in Power BI Desktop:&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 calculation in question is just a weighted tax rate, multiplying the purchase amount by the tax rate and dividing by the purchase amount for each location.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the measure in Power BI Desktop:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Weighted Rate = 
VAR _num = CALCULATE(SUMX('Table','Teable'[Amount]*'Table'[Rate]), FILTER('Table', [Location] = [Location]))
VAR _denom = CALCULATE(SUMX('Table', 'Table'[Amount]), FILTER('Table', [Location] = [Location]))

RETURN 
DIVIDE(_num, _denom) / 100&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the expression in Report Builder:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;( Sum ( ( Fields!Amount.Value *Fields!Rate.Value ) ) / Sum ( Fields!Amount.Value)) / 100&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the report this is the result:&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;I just am not sure why I am getting an error in some instances and not others. For the calculations that do show in Report Builder, they are correct so I am not sure how to proceed. Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 16:50:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Report-Builder-Error/m-p/3298337#M30225</guid>
      <dc:creator>NJ81858</dc:creator>
      <dc:date>2023-06-22T16:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Report Builder Error</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Report-Builder-Error/m-p/3300639#M30249</link>
      <description>&lt;P&gt;The DIVIDE function in DAX will check for 0 values on the denominator and will return a blank (which will then probably get filtered out) so you probably need to do the same thing in your report expressions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I would suggest just referencing the same measure in your paginated report, then you only have one place to maintain the logic.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 06:50:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Report-Builder-Error/m-p/3300639#M30249</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2023-06-24T06:50:44Z</dc:date>
    </item>
  </channel>
</rss>

