<?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: Issue with the ROUND function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-the-ROUND-function/m-p/3661658#M141897</link>
    <description>&lt;P&gt;The measures may be BLANK() rather than erroring out.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2024 01:25:47 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-01-26T01:25:47Z</dc:date>
    <item>
      <title>Issue with the ROUND function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-the-ROUND-function/m-p/3660679#M141847</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am geting the error above for these codes. Where am i going wrong?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Dynamic Forecast measure = 
SWITCH(
    SELECTEDVALUE(Dynamic_Selection_Period[Period]),
    "Prediction",
    "Forecast: " &amp;amp; 
    IF(
        ISERROR([Time Metric Calculations FCST]),
        "Error",
        ROUND([Time Metric Calculations FCST], 2)
    ) &amp;amp; 
    " (" &amp;amp; 
    IF(
        ISERROR([Time Metric Calculations CY Forecast] - [Time Metric Calculations FCST]),
        "Error",
        ROUND(([Time Metric Calculations CY Forecast] - [Time Metric Calculations FCST]), 2)
    ) &amp;amp; 
    ", " &amp;amp; 
    IF(
        ISERROR(([Time Metric Calculations CY Forecast] - [Time Metric Calculations FCST])/[Time Metric Calculations FCST]),
        "Error",
        ROUND(([Time Metric Calculations CY Forecast] - [Time Metric Calculations FCST])/[Time Metric Calculations FCST], 2)
    ) &amp;amp; 
    "%)",
    "MTD",
    "Forecast: " &amp;amp; 
    IF(
        ISERROR([Time Metric Calculations FCST]),
        "Error",
        ROUND([Time Metric Calculations FCST], 2)
    ) &amp;amp; 
    " (" &amp;amp; 
    IF(
        ISERROR([Time Metric Calculations CY] - [Time Metric Calculations FCST]),
        "Error",
        ROUND([Time Metric Calculations CY] - [Time Metric Calculations FCST], 2)
    ) &amp;amp; 
    ", " &amp;amp; 
    IF(
        ISERROR(([Time Metric Calculations CY] - [Time Metric Calculations FCST])/[Time Metric Calculations FCST]),
        "Error",
        ROUND(([Time Metric Calculations CY] - [Time Metric Calculations FCST])/[Time Metric Calculations FCST], 2)
    ) &amp;amp; 
    "%)"
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Dynamic Forecast measure = SWITCH(SELECTEDVALUE(Dynamic_Selection_Period[Period]),"Prediction","Forecast: " &amp;amp; ROUND([Time Metric Calculations FCST],2) &amp;amp; " (" &amp;amp; ROUND(([Time Metric Calculations CY Forecast] - [Time Metric Calculations FCST]),2) &amp;amp; ", " &amp;amp; ROUND(([Time Metric Calculations CY Forecast] - [Time Metric Calculations FCST])/[Time Metric Calculations FCST],2) &amp;amp; "%)","MTD","Forecast: " &amp;amp; ROUND([Time Metric Calculations FCST],2) &amp;amp; " (" &amp;amp; ROUND([Time Metric Calculations CY] - [Time Metric Calculations FCST],2) &amp;amp; ", " &amp;amp; ROUND(([Time Metric Calculations CY] - [Time Metric Calculations FCST])/[Time Metric Calculations FCST],2) &amp;amp; "%)")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 25 Jan 2024 14:22:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-the-ROUND-function/m-p/3660679#M141847</guid>
      <dc:creator>Yrstruly2021</dc:creator>
      <dc:date>2024-01-25T14:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the ROUND function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-the-ROUND-function/m-p/3661658#M141897</link>
      <description>&lt;P&gt;The measures may be BLANK() rather than erroring out.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 01:25:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-the-ROUND-function/m-p/3661658#M141897</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-01-26T01:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the ROUND function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-the-ROUND-function/m-p/3662113#M141915</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="289633" data-lia-user-login="Yrstruly2021" class="lia-mention lia-mention-user"&gt;Yrstruly2021&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Judging from your error message, the problem is with your Range function.You use the ROUND function to round the result to two decimal places. This should be fine, but you need to make sure that the rounded value is of the numeric type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above suggestions don't help you solve your problem, please&amp;nbsp;provide detailed sample pbix file and the results you expect.So that I can help you better. Please remove any sensitive data in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 06:45:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-the-ROUND-function/m-p/3662113#M141915</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-26T06:45:51Z</dc:date>
    </item>
  </channel>
</rss>

