<?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: Error in new column using lookup value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-new-column-using-lookup-value/m-p/3738661#M145761</link>
    <description>&lt;LI-CODE lang="markup"&gt;Please advise what I am doing wrong here.&lt;/LI-CODE&gt;
&lt;P&gt;You are using LOOKUPVALUE&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But seriously, let go of your Excel thinking and embrace the Power BI way of doing things.&amp;nbsp; Use the data model if you can, and TREATAS if you must. Only use LOOKUPVALUE if there is absolutely no other way.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 02:06:52 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-03-04T02:06:52Z</dc:date>
    <item>
      <title>Error in new column using lookup value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-new-column-using-lookup-value/m-p/3738588#M145753</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following new column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;locationCode =&lt;/SPAN&gt; &lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;locations&lt;/SPAN&gt;&lt;SPAN&gt;[code]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;locations&lt;/SPAN&gt;&lt;SPAN&gt;[id]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;salesOrderLines&lt;/SPAN&gt;&lt;SPAN&gt;[locationId]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;locations[code] is a valid field in the locations table.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I fix the formula by typing it again and it works fine and get the correct output.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But then i'll switch over to another field, and then the error comes back again "parameter is not the correct type"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have a few fields all over different tables.&amp;nbsp; I fix them and they work.&amp;nbsp; But then I go back into them and the error comes back.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Because of this i get this error....&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;OLE DB or ODBC error: [DataSource.Error] OData: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I also get the same error to this line of code to the ItemTableExcel[No.] field.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VenSearchName =&lt;/SPAN&gt; &lt;SPAN&gt;calculate&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;ItemTableExcel&lt;/SPAN&gt;&lt;SPAN&gt;[VendorSearchName]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&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;ItemTableExcel&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;ItemTableExcel&lt;/SPAN&gt;&lt;SPAN&gt;[No.]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;salesOrderLines&lt;/SPAN&gt;&lt;SPAN&gt;[lineObjectNumber]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please advise what I am doing wrong here.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Mar 2024 00:40:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-new-column-using-lookup-value/m-p/3738588#M145753</guid>
      <dc:creator>Nowherefast74</dc:creator>
      <dc:date>2024-03-04T00:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error in new column using lookup value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-new-column-using-lookup-value/m-p/3738661#M145761</link>
      <description>&lt;LI-CODE lang="markup"&gt;Please advise what I am doing wrong here.&lt;/LI-CODE&gt;
&lt;P&gt;You are using LOOKUPVALUE&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But seriously, let go of your Excel thinking and embrace the Power BI way of doing things.&amp;nbsp; Use the data model if you can, and TREATAS if you must. Only use LOOKUPVALUE if there is absolutely no other way.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 02:06:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-new-column-using-lookup-value/m-p/3738661#M145761</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-04T02:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error in new column using lookup value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-new-column-using-lookup-value/m-p/3745203#M146053</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="699716" data-lia-user-login="Nowherefast74" class="lia-mention lia-mention-user"&gt;Nowherefast74&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This error may be due to the remote server being unable to handle concurrent processing of multiple tables. You can try the following:”&lt;/P&gt;
&lt;P&gt;Is your Power BI Desktop the latest version, if not, you can update to the latest version.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.microsoft.com/en-us/download/details.aspx?id=58494" target="_blank"&gt;Download Power BI Desktop from Official Microsoft Download Center&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Adjust parallel loading of tables settings：&lt;BR /&gt;File – options and settings – options – current file – data load.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Prevents multiple queries from being executed at the same time, thus allowing one query to be processed at a time to ensure a successful report refresh. However, this may result in longer refresh times compared to parallel processing. Alternatively, the user can select the "Custom" option and try the optimal number of tables for concurrent processing.&lt;/P&gt;
&lt;P&gt;This is the related document, you can view this content:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Issues/Unable-to-read-data-from-the-transport-connection/idi-p/112411/page/2#comments" target="_blank"&gt;Unable to read data from the transport connection - Page 2 - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/oData-OLE-DB-or-ODBC-error-DataSource-Error-Unable-to-read-data/td-p/1192134" target="_blank"&gt;oData OLE DB or ODBC error: [DataSource.Error] Un... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/OLE-DB-or-ODBC-error-DataSource-Error/m-p/865494" target="_blank"&gt;Solved: OLE DB or ODBC error: [DataSource.Error] - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 07:22:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-in-new-column-using-lookup-value/m-p/3745203#M146053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-06T07:22:04Z</dc:date>
    </item>
  </channel>
</rss>

