<?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 values generated by measure across dates table. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-generated-by-measure-across-dates-table/m-p/884935#M7638</link>
    <description>&lt;P&gt;Please help me on this.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Dec 2019 06:46:31 GMT</pubDate>
    <dc:creator>vaibhavd</dc:creator>
    <dc:date>2019-12-27T06:46:31Z</dc:date>
    <item>
      <title>Count values generated by measure across dates table.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-generated-by-measure-across-dates-table/m-p/884344#M7622</link>
      <description>&lt;P&gt;I have following measure that calculates the version accross dates (displayed in green below).&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Version = &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;VAR endOfMonthDate = ENDOFMONTH(Dates[Date])&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;VAR startOfMonthDate = STARTOFMONTH(Dates[Date])&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;VAR lastDate_ = CALCULATE(LASTDATE('Upgrade_Data'[UpgDate]),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;'Upgrade_Data'[UpgDate]&amp;lt;=endOfMonthDate,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;CUSTOMERS[LEAVE_DATE] &amp;gt;= startOfMonthDate || CUSTOMERS[LEAVE_DATE] = BLANK())&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;return&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;CALCULATE(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[MaxCustomBranch],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;'Upgrade_Data'[UpgDate] = lastDate_&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;img /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;Now I want to have following output.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;I have spent quite some time on it. But not able to count the values generated by measure. Can anyone please help ?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 06:58:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-generated-by-measure-across-dates-table/m-p/884344#M7622</guid>
      <dc:creator>vaibhavd</dc:creator>
      <dc:date>2019-12-26T06:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count values generated by measure across dates table.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-generated-by-measure-across-dates-table/m-p/884935#M7638</link>
      <description>&lt;P&gt;Please help me on this.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 06:46:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-generated-by-measure-across-dates-table/m-p/884935#M7638</guid>
      <dc:creator>vaibhavd</dc:creator>
      <dc:date>2019-12-27T06:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Count values generated by measure across dates table.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-generated-by-measure-across-dates-table/m-p/885096#M7645</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="193070" data-lia-user-login="vaibhavd" class="lia-mention lia-mention-user"&gt;vaibhavd&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to use a version in your Matrix as a Column or Row then you will need to add it as a column to your table.&lt;/P&gt;
&lt;P&gt;If this is not what the problem is, please can you attempt to explain it again?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Mariusz&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 10:03:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-generated-by-measure-across-dates-table/m-p/885096#M7645</guid>
      <dc:creator>Mariusz</dc:creator>
      <dc:date>2019-12-27T10:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count values generated by measure across dates table.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-generated-by-measure-across-dates-table/m-p/885159#M7647</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="193070" data-lia-user-login="vaibhavd" class="lia-mention lia-mention-user"&gt;vaibhavd&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure thi is you are looking for but try a measure like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
var countCustomer = calculate(count(Table1[Customer]))
return
if(isblank(countCustomer);0;countCustomer)&lt;/LI-CODE&gt;&lt;P&gt;it could give you a desired matrix&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://linkedin.com/in/alekseizhukov" target="_blank"&gt;LinkedIn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 11:45:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-generated-by-measure-across-dates-table/m-p/885159#M7647</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2019-12-27T11:45:00Z</dc:date>
    </item>
  </channel>
</rss>

