<?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: Dax measure error in a table with 100 rows but not in one with 50 rows in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-error-in-a-table-with-100-rows-but-not-in-one-with/m-p/4060910#M161190</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="206549" data-lia-user-login="ruanolin" class="lia-mention lia-mention-user"&gt;ruanolin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error you're encountering in your DAX measure with the 100-row table is due to the presence of a text value that cannot be converted to a number. Specifically, the value 'N0' in the fieldValue column is causing the issue when trying to apply the VALUE function.&lt;BR /&gt;To fix this, you need to ensure that all values in the fieldValue column can be successfully converted to numbers. One approach is to filter out non-numeric values before performing the calculation. You can use the &lt;STRONG&gt;ISNUMBER&lt;/STRONG&gt; function to check if a value can be converted to a number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to modify your formula like below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Indis = 
SUMX(
    FILTER(
        'Table100rows',
        'Table100rows'[cfId] = 10029 &amp;amp;&amp;amp; ISNUMBER(VALUE('Table100rows'[fieldValue]))
    ),
    VALUE('Table100rows'[fieldValue])
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2024 08:37:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-25T08:37:43Z</dc:date>
    <item>
      <title>Dax measure error in a table with 100 rows but not in one with 50 rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-error-in-a-table-with-100-rows-but-not-in-one-with/m-p/4032553#M159567</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I have the following PowerBI file with 2 tables.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.transfernow.net/dl/20240709ziAvFTTf" target="_blank" rel="nofollow noopener noreferrer"&gt;Formula 100rows vs 50rows&lt;/A&gt;&lt;/P&gt;&lt;P&gt;One of the tables contains 50 rows, and the other contains 100 (both tables have the same values; only the number of repeated rows changes).&lt;/P&gt;&lt;P&gt;I also have the following formula:&lt;/P&gt;&lt;PRE&gt;Indis = SUMX(
             FILTER( ‘Table50rows’,
                     ‘Table50rows’[cfId] = 10029 ),
             VALUE(‘Table50rows’[fieldValue]) 
             )&lt;/PRE&gt;&lt;P&gt;The problem is that the formula works correctly with the table of 50 rows, but it gives me the following error with the table of 100 rows:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MdxScript(Model) (17,5) Calculation error in measure: Cannot convert value 'N0' of type Text to type Number.&lt;/EM&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Jul 2024 12:39:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-error-in-a-table-with-100-rows-but-not-in-one-with/m-p/4032553#M159567</guid>
      <dc:creator>ruanolin</dc:creator>
      <dc:date>2024-07-09T12:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure error in a table with 100 rows but not in one with 50 rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-error-in-a-table-with-100-rows-but-not-in-one-with/m-p/4032588#M159572</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="206549" data-lia-user-login="ruanolin" class="lia-mention lia-mention-user"&gt;ruanolin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I could not access your file, but you should check part ‘Table50rows’[cfId] = 10029 ),&lt;/P&gt;
&lt;P&gt;try&amp;nbsp;&lt;/P&gt;
&lt;P&gt;‘Table50rows’[cfId] = "10029"),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 12:57:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-error-in-a-table-with-100-rows-but-not-in-one-with/m-p/4032588#M159572</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-07-09T12:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure error in a table with 100 rows but not in one with 50 rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-error-in-a-table-with-100-rows-but-not-in-one-with/m-p/4032598#M159574</link>
      <description>&lt;P&gt;&lt;STRONG&gt;cfId&lt;/STRONG&gt; field is of type Whole number, so it should work well without quotes. Otherwise it works well in the 50 rows table.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 13:02:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-error-in-a-table-with-100-rows-but-not-in-one-with/m-p/4032598#M159574</guid>
      <dc:creator>ruanolin</dc:creator>
      <dc:date>2024-07-09T13:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure error in a table with 100 rows but not in one with 50 rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-error-in-a-table-with-100-rows-but-not-in-one-with/m-p/4060910#M161190</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="206549" data-lia-user-login="ruanolin" class="lia-mention lia-mention-user"&gt;ruanolin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error you're encountering in your DAX measure with the 100-row table is due to the presence of a text value that cannot be converted to a number. Specifically, the value 'N0' in the fieldValue column is causing the issue when trying to apply the VALUE function.&lt;BR /&gt;To fix this, you need to ensure that all values in the fieldValue column can be successfully converted to numbers. One approach is to filter out non-numeric values before performing the calculation. You can use the &lt;STRONG&gt;ISNUMBER&lt;/STRONG&gt; function to check if a value can be converted to a number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to modify your formula like below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Indis = 
SUMX(
    FILTER(
        'Table100rows',
        'Table100rows'[cfId] = 10029 &amp;amp;&amp;amp; ISNUMBER(VALUE('Table100rows'[fieldValue]))
    ),
    VALUE('Table100rows'[fieldValue])
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 08:37:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-error-in-a-table-with-100-rows-but-not-in-one-with/m-p/4060910#M161190</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-25T08:37:43Z</dc:date>
    </item>
  </channel>
</rss>

