<?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: MdxScript (Sales) (1890,3) Calculation error in measure. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MdxScript-Sales-1890-3-Calculation-error-in-measure/m-p/3205721#M116751</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what are&amp;nbsp;&lt;SPAN&gt;Measurement1,&amp;nbsp;Measurement1 and Meter3? Are they measure or columns? If columns then in which table? What are the relationships between the tables? How does the visual look like.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2023 19:29:00 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-04-25T19:29:00Z</dc:date>
    <item>
      <title>MdxScript (Sales) (1890,3) Calculation error in measure.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MdxScript-Sales-1890-3-Calculation-error-in-measure/m-p/3205340#M116730</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;created this DAX measure in Azure Analysis Server (AAS):&lt;/P&gt;&lt;P&gt;IF&lt;BR /&gt;(&lt;BR /&gt;[WarrantyLimit1]=0,&lt;BR /&gt;SUM([Measurement1])*'&lt;SPAN&gt;Sales'[InvoicedQty],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IF(&lt;BR /&gt;LEFT([Meter3],4) = "TRAB",&lt;BR /&gt;SUM([Measurement3])*'Sales'[InvoicedQty],&lt;BR /&gt;0&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;The script is picking data from Product as well as Sales and in AAS it is not giving issues. When uploading this measure to Power BI web, i get an error message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Couldn' t load the data for this visual&lt;/P&gt;&lt;P&gt;MdxScript(Sales) (1890, 3) Calculation error in measure; the valule for Measurement3 cannot be determined, either the column doesn't exist or there is no current row for this column.&lt;/P&gt;&lt;P&gt;Checked everything, it seems everything is available, but still this error message remains.&lt;/P&gt;&lt;P&gt;Anyone an idea how to solve??&lt;/P&gt;&lt;P&gt;thanks!!!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 14:55:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MdxScript-Sales-1890-3-Calculation-error-in-measure/m-p/3205340#M116730</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-25T14:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: MdxScript (Sales) (1890,3) Calculation error in measure.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MdxScript-Sales-1890-3-Calculation-error-in-measure/m-p/3205721#M116751</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what are&amp;nbsp;&lt;SPAN&gt;Measurement1,&amp;nbsp;Measurement1 and Meter3? Are they measure or columns? If columns then in which table? What are the relationships between the tables? How does the visual look like.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 19:29:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MdxScript-Sales-1890-3-Calculation-error-in-measure/m-p/3205721#M116751</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-25T19:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: MdxScript (Sales) (1890,3) Calculation error in measure.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MdxScript-Sales-1890-3-Calculation-error-in-measure/m-p/3206522#M116788</link>
      <description>&lt;P&gt;Hi Tamerj1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for swift response, Measurements1-3 are fields (columns) with values related to items which are in the table Product. The relation between Sales and Product is productkeyID, which is a number generated by the system. The visual i am using is just a table in which i added the measure:&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;</description>
      <pubDate>Wed, 26 Apr 2023 06:29:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MdxScript-Sales-1890-3-Calculation-error-in-measure/m-p/3206522#M116788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-26T06:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: MdxScript (Sales) (1890,3) Calculation error in measure.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MdxScript-Sales-1890-3-Calculation-error-in-measure/m-p/3206819#M116811</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Perhaps the same column name is used for another column in another table which makes it impossible for the engine to identify which is which without specifying&amp;nbsp;the table name. The standard is to specify the table name along with&amp;nbsp;the column name when referencing a column and not to include the table name when referencing a measure. Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;TranspoKarton =
IF (
    [WarrantyLimit1] = 0,
    SUM ( 'Dim_Product'[Measurement1] ) * 'Sales'[InvoicedQty],
    IF (
        LEFT ( [Meter3], 4 ) = "TRAB",
        SUM ( 'Dim_Product'[Measurement3] ) * 'Sales'[InvoicedQty],
        0
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 26 Apr 2023 08:40:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MdxScript-Sales-1890-3-Calculation-error-in-measure/m-p/3206819#M116811</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-26T08:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: MdxScript (Sales) (1890,3) Calculation error in measure.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MdxScript-Sales-1890-3-Calculation-error-in-measure/m-p/3217110#M117475</link>
      <description>&lt;P&gt;hi Tamerj1,&lt;/P&gt;&lt;P&gt;thanks for your swift response but this solution did not work as well. Had to solve it in a different way by adding the calculations in the DSA. By doing so, i was able to deliver the proper info.&lt;/P&gt;&lt;P&gt;Again, appreciate your support!!!&lt;/P&gt;&lt;P&gt;thnnx!!&lt;/P&gt;&lt;P&gt;Maarten&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 06:24:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MdxScript-Sales-1890-3-Calculation-error-in-measure/m-p/3217110#M117475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-03T06:24:41Z</dc:date>
    </item>
  </channel>
</rss>

