<?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: An argument of function has wrong data type or the result is too large or too small in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/An-argument-of-function-has-wrong-data-type-or-the-result-is-too/m-p/4029747#M159287</link>
    <description>&lt;P&gt;Thank you for your reply. By using the blow year slicer and a dimentional attribute, I can see I don't have number of years &amp;lt;= 0. But once I bring the CAGR to the table chart, the visual would break and the same error comes up....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2024 08:43:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-08T08:43:35Z</dc:date>
    <item>
      <title>An argument of function has wrong data type or the result is too large or too small</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/An-argument-of-function-has-wrong-data-type-or-the-result-is-too/m-p/4027269#M159077</link>
      <description>&lt;P&gt;I am working on a CAGR Calculation in Power BI, the Syntax is&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CAGR = &lt;/SPAN&gt;&lt;SPAN&gt;RRI&lt;/SPAN&gt;&lt;SPAN&gt;([Num of CAGR Year],[FirstYearShipValue],[LastYearShipValue])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The num of CAGR Year, FirstYearValue and LastYearValue DAX are as below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is the calculation could only be visulized individually on a card, once I brought any dimentional attributes to a table with the CAGR calculation, I immediately got en error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could please anyone advice what could be the cause?&amp;nbsp; How could I fix it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;FirstYearShipValue =&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;FirstYear&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;FIRSTNONBLANK&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar (Reporting Date &amp;amp; Backlog GID)'&lt;/SPAN&gt;&lt;SPAN&gt;[FY]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;[Ship Value]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;FilterYear&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar (Reporting Date &amp;amp; Backlog GID)'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Calendar (Reporting Date &amp;amp; Backlog GID)'&lt;/SPAN&gt;&lt;SPAN&gt;[FY]&lt;/SP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/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar (Reporting Date &amp;amp; Backlog GID)'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Calendar (Reporting Date &amp;amp; Backlog GID)'&lt;/SPAN&gt;&lt;SPAN&gt;[FY]&lt;/SPAN&gt;&lt;SPAN&gt; = &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;LastYear&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FilterYear&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Ship Value]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Num of CAGR Year =&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;FirstYear&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;FIRSTNONBLANK&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar (Reporting Date &amp;amp; Backlog GID)'&lt;/SPAN&gt;&lt;SPAN&gt;[FY]&lt;/SPAN&gt;&l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>
      <pubDate>Fri, 05 Jul 2024 15:03:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/An-argument-of-function-has-wrong-data-type-or-the-result-is-too/m-p/4027269#M159077</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-05T15:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: An argument of function has wrong data type or the result is too large or too small</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/An-argument-of-function-has-wrong-data-type-or-the-result-is-too/m-p/4028226#M159148</link>
      <description>&lt;P&gt;Quote:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;An error is returned if:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;nper ≤ 0.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Sat, 06 Jul 2024 17:36:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/An-argument-of-function-has-wrong-data-type-or-the-result-is-too/m-p/4028226#M159148</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-07-06T17:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: An argument of function has wrong data type or the result is too large or too small</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/An-argument-of-function-has-wrong-data-type-or-the-result-is-too/m-p/4029747#M159287</link>
      <description>&lt;P&gt;Thank you for your reply. By using the blow year slicer and a dimentional attribute, I can see I don't have number of years &amp;lt;= 0. But once I bring the CAGR to the table chart, the visual would break and the same error comes up....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 08:43:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/An-argument-of-function-has-wrong-data-type-or-the-result-is-too/m-p/4029747#M159287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-08T08:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: An argument of function has wrong data type or the result is too large or too small</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/An-argument-of-function-has-wrong-data-type-or-the-result-is-too/m-p/4030340#M159353</link>
      <description>&lt;P&gt;Are you familiar with DAXDebugOutput?&amp;nbsp; It provides you an option to use EVALUATEANDLOG to troubleshoot your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can provide sample data here that illustrates the issue.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 13:26:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/An-argument-of-function-has-wrong-data-type-or-the-result-is-too/m-p/4030340#M159353</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-07-08T13:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: An argument of function has wrong data type or the result is too large or too small</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/An-argument-of-function-has-wrong-data-type-or-the-result-is-too/m-p/4070655#M161603</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you solved your problem? If so, can you share your solution here and mark the correct answer as a standard answer to help other members find it faster? Thank you very much for your kind cooperation!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Zhengdong Xu&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&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;&lt;EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 07:27:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/An-argument-of-function-has-wrong-data-type-or-the-result-is-too/m-p/4070655#M161603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-31T07:27:18Z</dc:date>
    </item>
  </channel>
</rss>

