<?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 message for a measure - how to interpret it in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-message-for-a-measure-how-to-interpret-it/m-p/2849691#M91301</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="386899" data-lia-user-login="Berl21" class="lia-mention lia-mention-user"&gt;Berl21&lt;/a&gt; , Rae you trying to add a measure in a calculated column?&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2022 18:08:53 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-10-18T18:08:53Z</dc:date>
    <item>
      <title>Error message for a measure - how to interpret it</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-message-for-a-measure-how-to-interpret-it/m-p/2849000#M91245</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I added a calculated table to my data with values for the previous year, and then tried to add a measure using Switch.&lt;BR /&gt;&lt;BR /&gt;This is what I wrote.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;Range PY = SWITCH(TRUE(),'Leads Amount PY'[Count of Leads PY]&amp;lt;3,"1-3",'Leads Amount PY'[Count of Leads PY]&amp;lt;5,"3-5",'Leads Amount PY'[Count of Leads PY]&amp;lt;10,"5-10")&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;I get the following error message:&lt;BR /&gt;&lt;EM&gt;A single value for column 'Count of Leads PY' in table 'Leads Amount PY' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;The thing is I took the exact same steps for the current year, it works without a hitch and there is no aggregation there either. Is there another way to interpret this error message? What else can I check to make sure it works as intended?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 11:51:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-message-for-a-measure-how-to-interpret-it/m-p/2849000#M91245</guid>
      <dc:creator>Berl21</dc:creator>
      <dc:date>2022-10-18T11:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error message for a measure - how to interpret it</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-message-for-a-measure-how-to-interpret-it/m-p/2849691#M91301</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="386899" data-lia-user-login="Berl21" class="lia-mention lia-mention-user"&gt;Berl21&lt;/a&gt; , Rae you trying to add a measure in a calculated column?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 18:08:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-message-for-a-measure-how-to-interpret-it/m-p/2849691#M91301</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-10-18T18:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error message for a measure - how to interpret it</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-message-for-a-measure-how-to-interpret-it/m-p/2850658#M91348</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;to provide an example, this is the calculated table what I did for all the data (no filter on the year).&lt;BR /&gt;&lt;BR /&gt;Calculated table:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;Leads Amount = &lt;/EM&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;EM&gt;SUMMARIZE(&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; Leads_Table,&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; Leads_Table[ZH_Account__c],&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; Leads_Table[Lead_Creation_Date],&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; "Count of Leads",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; [Count Leads]&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I then inserted this measure:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;Range = SWITCH(TRUE(),'Leads Amount'[Count of Leads]&amp;lt;3,"1-3",'Leads Amount'[Count of Leads]&amp;lt;5,"3-5",'Leads Amount'[Count of Leads]&amp;lt;10,"5-10")&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The result appears correctly in the final table:&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am now trying to reproduce this with a change to the first step (filter for the previous year). But for some reason that I don't understand, I get this error message about an aggregation issue &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 08:09:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-message-for-a-measure-how-to-interpret-it/m-p/2850658#M91348</guid>
      <dc:creator>Berl21</dc:creator>
      <dc:date>2022-10-19T08:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error message for a measure - how to interpret it</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-message-for-a-measure-how-to-interpret-it/m-p/2851150#M91398</link>
      <description>&lt;P&gt;Ok, I got it. The problem was indeed that it was a measure&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/148838" target="_blank"&gt;@amitchandak&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;. Beginner mistake&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":expressionless_face:"&gt;😑&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;For anyone who reads this, this should be made over a calculated column based on the calculated table (instead of with a measure).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 11:04:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-message-for-a-measure-how-to-interpret-it/m-p/2851150#M91398</guid>
      <dc:creator>Berl21</dc:creator>
      <dc:date>2022-10-19T11:04:44Z</dc:date>
    </item>
  </channel>
</rss>

