<?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: Count function not working? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-function-not-working/m-p/1898966#M40947</link>
    <description>&lt;P&gt;Not sure how to attach a file, but here is a cropped version of the data i'm working with.&lt;/P&gt;&lt;P&gt;&amp;lt;can't add a table?&amp;gt;&lt;/P&gt;&lt;P&gt;I'm creating a very simple matrix visual that totals (for YTD as of March 31, 2021) the dollar amounts (amount_c) and count the number of transactions (either id or name, i've tried both) for the same time frame. I have the CreatedDate field linked to a date table, and use a YTDTOTAL measure based on that date field, and a sum measure to get the dollar amount. that value is correct in the measure, but the count is off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for CO B, in power bi, i get the correct dollar amount ($1.029 million), but a count of null/0 instead of the correct value: 1. For CO A, i again get the correct dollar amount ($7,569.00) but a count of 2, instead of the correct value: 5&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could there be an issue with the relationship between the date field in the source data and the date table? if i create the same measure on a separate report (same dataset), but base it on the createdate, i get an accurate result. i'm not sure what a potential issue could be? also, i'd assume the dollar amount would incorrect as well, in that case.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jun 2021 13:22:17 GMT</pubDate>
    <dc:creator>MikeBresnan</dc:creator>
    <dc:date>2021-06-14T13:22:17Z</dc:date>
    <item>
      <title>Count function not working?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-function-not-working/m-p/1894281#M40822</link>
      <description>&lt;P&gt;I'm having issues with a count function not working. I tried it as a measure, and as a function within the value, but my count is way off. The field i'm trying to count has all unique values, so as far as i can tell it's not aggregating anything. in my data i have two distinct fields (row id, and doc number) that are both giving the same result. it's weird...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for this matrix visualization, i'm summing the dollar values of incoming funds, and displaying a count of transactions. for one entity, i have one payment with a dollar amount, but the count is showing no value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone seen this sort of issue before?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 20:01:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-function-not-working/m-p/1894281#M40822</guid>
      <dc:creator>MikeBresnan</dc:creator>
      <dc:date>2021-06-10T20:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count function not working?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-function-not-working/m-p/1897264#M40899</link>
      <description>&lt;P&gt;The question is too vague. Please provide sample data in usable format (not as a picture) and show the expected outcome.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jun 2021 00:02:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-function-not-working/m-p/1897264#M40899</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-06-13T00:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count function not working?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-function-not-working/m-p/1898966#M40947</link>
      <description>&lt;P&gt;Not sure how to attach a file, but here is a cropped version of the data i'm working with.&lt;/P&gt;&lt;P&gt;&amp;lt;can't add a table?&amp;gt;&lt;/P&gt;&lt;P&gt;I'm creating a very simple matrix visual that totals (for YTD as of March 31, 2021) the dollar amounts (amount_c) and count the number of transactions (either id or name, i've tried both) for the same time frame. I have the CreatedDate field linked to a date table, and use a YTDTOTAL measure based on that date field, and a sum measure to get the dollar amount. that value is correct in the measure, but the count is off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for CO B, in power bi, i get the correct dollar amount ($1.029 million), but a count of null/0 instead of the correct value: 1. For CO A, i again get the correct dollar amount ($7,569.00) but a count of 2, instead of the correct value: 5&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could there be an issue with the relationship between the date field in the source data and the date table? if i create the same measure on a separate report (same dataset), but base it on the createdate, i get an accurate result. i'm not sure what a potential issue could be? also, i'd assume the dollar amount would incorrect as well, in that case.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 13:22:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-function-not-working/m-p/1898966#M40947</guid>
      <dc:creator>MikeBresnan</dc:creator>
      <dc:date>2021-06-14T13:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count function not working?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-function-not-working/m-p/1899808#M40972</link>
      <description>&lt;P&gt;How to get good help fast. Help us help you.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;A href="https://www.sqlbi.com/blog/alberto/2021/01/22/on-how-to-ask-a-technical-question-if-you-really-want-an-answer/" rel="noopener" target="_blank"&gt;How To Ask A Technical Question If you Really Want An Answer&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" rel="noopener" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt; - Give us a good and concise explanation&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" rel="noopener" target="_blank"&gt;How to provide sample data in the Power BI Forum&lt;/A&gt; - Provide data in a table format per the link, or share an Excel/CSV file via OneDrive, Dropbox, etc.. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 21:57:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-function-not-working/m-p/1899808#M40972</guid>
      <dc:creator>edhans</dc:creator>
      <dc:date>2021-06-14T21:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count function not working?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-function-not-working/m-p/1902124#M41024</link>
      <description>&lt;P&gt;OK, lets try this again: here is the link to the cropped version of the sample data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/15z5LWjmO3urWuTaCv5YwKDKY2xdDiEmk/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/15z5LWjmO3urWuTaCv5YwKDKY2xdDiEmk/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The pivot table in Sheet2 shows how the data should be calculating&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and here's how it shows in Power BI&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the help/patience!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 20:12:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-function-not-working/m-p/1902124#M41024</guid>
      <dc:creator>MikeBresnan</dc:creator>
      <dc:date>2021-06-15T20:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Count function not working?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-function-not-working/m-p/1902826#M41040</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="277727" data-lia-user-login="MikeBresnan" class="lia-mention lia-mention-user"&gt;MikeBresnan&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Is this your expected output?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 06:03:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-function-not-working/m-p/1902826#M41040</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-16T06:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count function not working?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-function-not-working/m-p/1903892#M41089</link>
      <description>&lt;P&gt;Yup! that's what i would expect to see. If i create the YTDTOTAL measure based on that created date field, it's what i get. When i use the date table it's linked to, the count gets thrown off.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 12:59:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-function-not-working/m-p/1903892#M41089</guid>
      <dc:creator>MikeBresnan</dc:creator>
      <dc:date>2021-06-16T12:59:15Z</dc:date>
    </item>
  </channel>
</rss>

