<?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: The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-refers-to-multiple-columns-Multiple-columns/m-p/2982974#M100035</link>
    <description>&lt;P&gt;Thank you that worked,&lt;/P&gt;&lt;P&gt;If you have the time and patience, would it be possible to explain why. I guess it has something to do with the Table "Targets" but can't figure out &lt;SPAN&gt;the reason for the error.&amp;nbsp; thanks again.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2022 00:14:32 GMT</pubDate>
    <dc:creator>TJCappy</dc:creator>
    <dc:date>2022-12-22T00:14:32Z</dc:date>
    <item>
      <title>The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-refers-to-multiple-columns-Multiple-columns/m-p/2982941#M100029</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the sales for a given period, I am trying to calclate the number of clients a sales rep will need to have to attain their sales goal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following data and can't seem to get the result I need and continuously get the above noted error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table that has the Sales targets for each role in the department&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Role&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2022 Annual Target&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2023 Annual Target&lt;/P&gt;&lt;P&gt;Account Rep - Level I&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 14,000,000.00&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;14,500,000.00&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Account Rep -Level II&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;19,000,000.00&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20,000,000.00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then have a measure that Calculates the avrerage sale per client per rep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Distinct&amp;nbsp;Client&amp;nbsp;Gross Sales&amp;nbsp;Average&amp;nbsp;=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'DailySales&amp;nbsp;(cds)&amp;nbsp;Measures'[Total&amp;nbsp;Gross&amp;nbsp;Sales&amp;nbsp;Amount],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'DailySales&amp;nbsp;(cds)&amp;nbsp;Measures'[Clients&amp;nbsp;with&amp;nbsp;Sales&amp;nbsp;trxns&amp;nbsp;in&amp;nbsp;period],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;"null"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I am now trying to create a measure that will&amp;nbsp; divide the target for each rep by the &lt;EM&gt;Distinct&amp;nbsp;Client&amp;nbsp;Gross Sales&amp;nbsp;Average&lt;/EM&gt; to get the a target number of clients.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;the measure I have created is&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Clients Needed for Target =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Target&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&amp;nbsp;(&lt;SPAN&gt;&amp;nbsp;'Targets',&amp;nbsp;'Targets'[2023&amp;nbsp;Annual Target]&amp;nbsp;&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN class=""&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;AverageSale&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&amp;nbsp;(&lt;SPAN&gt;&amp;nbsp;[CNM&amp;nbsp;Distinct&amp;nbsp;Client&amp;nbsp;Gross&amp;nbsp;sales&amp;nbsp;Average]&amp;nbsp;&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN class=""&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Target&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;/&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;AverageSale&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;But it does not work and no matter what I try based on all the info i have come accross on the net I am having no success.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I could really do with some help.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 23:41:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-refers-to-multiple-columns-Multiple-columns/m-p/2982941#M100029</guid>
      <dc:creator>TJCappy</dc:creator>
      <dc:date>2022-12-21T23:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-refers-to-multiple-columns-Multiple-columns/m-p/2982950#M100031</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="398979" data-lia-user-login="TJCappy" class="lia-mention lia-mention-user"&gt;TJCappy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Clients Needed for Target =&lt;BR /&gt;SUMX (&lt;BR /&gt;'Targets',&lt;BR /&gt;DIVIDE (&lt;BR /&gt;'Targets'[2023 Annual Target],&lt;BR /&gt;[CNM Distinct Client Gross sales Average]&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 23:53:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-refers-to-multiple-columns-Multiple-columns/m-p/2982950#M100031</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-12-21T23:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-refers-to-multiple-columns-Multiple-columns/m-p/2982974#M100035</link>
      <description>&lt;P&gt;Thank you that worked,&lt;/P&gt;&lt;P&gt;If you have the time and patience, would it be possible to explain why. I guess it has something to do with the Table "Targets" but can't figure out &lt;SPAN&gt;the reason for the error.&amp;nbsp; thanks again.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 00:14:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-refers-to-multiple-columns-Multiple-columns/m-p/2982974#M100035</guid>
      <dc:creator>TJCappy</dc:creator>
      <dc:date>2022-12-22T00:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-refers-to-multiple-columns-Multiple-columns/m-p/2982985#M100036</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="398979" data-lia-user-login="TJCappy" class="lia-mention lia-mention-user"&gt;TJCappy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first argument of CALCULATE has to be sn expression that yields a scalar value but you have specified a table ('Targets'). &amp;nbsp;The second argument of CALCULATE if a Filter expression (in other words a table)&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 00:28:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-refers-to-multiple-columns-Multiple-columns/m-p/2982985#M100036</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-12-22T00:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-refers-to-multiple-columns-Multiple-columns/m-p/2985033#M100139</link>
      <description>&lt;P&gt;Thank you for explaining, it now makes sense. I am still pretty green with Power BI so getting an explanation really helps.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 18:50:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-refers-to-multiple-columns-Multiple-columns/m-p/2985033#M100139</guid>
      <dc:creator>TJCappy</dc:creator>
      <dc:date>2022-12-22T18:50:23Z</dc:date>
    </item>
  </channel>
</rss>

