<?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 caused by nonexistent column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-caused-by-nonexistent-column/m-p/3227972#M118290</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="335379" data-lia-user-login="gspollock" class="lia-mention lia-mention-user"&gt;gspollock&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please try below dax formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count of Acct Mgrs =
VAR numshares =
    CALCULATE (
        DISTINCTCOUNT ( mbammsreportshare[acct_mgr_name] ),
        FILTER ( ALL ( mbammsreportshare ), [Meets Quarterly Share Goal] = 1 )
    )
RETURN
    numshares
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_Binbin Yu&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2023 01:35:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-05-10T01:35:47Z</dc:date>
    <item>
      <title>Error caused by nonexistent column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-caused-by-nonexistent-column/m-p/3225675#M118129</link>
      <description>&lt;P&gt;I have these measures in the mbammsreportshare table:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;EM&gt;Quarterly Shares = COUNTROWS('mbammsreportshare')&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Meets Quarterly Share Goal = calculate(IF( [Quarterly Shares] &amp;gt;1,1,0))&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Count of Acct Mgrs = var numshares =&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CALCULATE(&amp;nbsp;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DISTINCTCOUNT(mbammsreportshare[acct_mgr_name]), filter(mbammsreportshare,[Meets Quarterly Share Goal] =1 )&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;) RETURN numshares&lt;/EM&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The third measure gets this error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The query referenced calculated column 'mbammsreportshare'[access_count_num] which does not hold any data because there is an error in its expression.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I remove the filter from the last measure it doesn't have the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no &lt;EM&gt;access_count_num&lt;/EM&gt;&amp;nbsp;column in the mbammsreportshare&amp;nbsp;table or any other table.&amp;nbsp; There is a column called&amp;nbsp;&lt;EM&gt;access_count&lt;/EM&gt; in&amp;nbsp;mbammsreportshare.&amp;nbsp; It is not used by any of the measures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What could be the cause of this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 21:03:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-caused-by-nonexistent-column/m-p/3225675#M118129</guid>
      <dc:creator>gspollock</dc:creator>
      <dc:date>2023-05-08T21:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error caused by nonexistent column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-caused-by-nonexistent-column/m-p/3227972#M118290</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="335379" data-lia-user-login="gspollock" class="lia-mention lia-mention-user"&gt;gspollock&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please try below dax formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count of Acct Mgrs =
VAR numshares =
    CALCULATE (
        DISTINCTCOUNT ( mbammsreportshare[acct_mgr_name] ),
        FILTER ( ALL ( mbammsreportshare ), [Meets Quarterly Share Goal] = 1 )
    )
RETURN
    numshares
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_Binbin Yu&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 01:35:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-caused-by-nonexistent-column/m-p/3227972#M118290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-10T01:35:47Z</dc:date>
    </item>
  </channel>
</rss>

