<?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: dax query to count the number of quarters for different years in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-query-to-count-the-number-of-quarters-for-different-years/m-p/3299404#M123001</link>
    <description>&lt;P&gt;thank you,&amp;nbsp;&lt;BR /&gt;how to remove the blank quarter count from it.&lt;BR /&gt;It must show only 8. It should count only the quarter which has data in it.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2023 08:48:24 GMT</pubDate>
    <dc:creator>Haripinnoju</dc:creator>
    <dc:date>2023-06-23T08:48:24Z</dc:date>
    <item>
      <title>dax query to count the number of quarters for different years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-query-to-count-the-number-of-quarters-for-different-years/m-p/3299365#M122993</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;I need a dax query that count the number of quarters based on the quarters and years data, it must not be distinct.&lt;BR /&gt;eg. year 2020 quarters Q1, Q2, Q3, Q4 No.of quarters: 4&lt;/P&gt;&lt;P&gt;if selected 2years in the slicer then:&lt;/P&gt;&lt;P&gt;2020 has four quarters data called Q1, Q2, Q3, Q4&lt;/P&gt;&lt;P&gt;2021 has three quarters data called Q1, Q2, Q3&lt;/P&gt;&lt;P&gt;so, the overall count of quarters must be 7.&lt;/P&gt;&lt;P&gt;Similarly, for all the selected years. - count of years and each year how many quarters it is has.&lt;/P&gt;&lt;P&gt;It needs to show the count. It should not count the blanks.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;here- when taken distinct count of quarter it shows 5 which is not expected, when taken count of quarter it shows the count of quarter records and led to 99 count. I expect the count to be 8- 2years and they have 4quarters each so the count should be 2*4=8.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 08:22:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-query-to-count-the-number-of-quarters-for-different-years/m-p/3299365#M122993</guid>
      <dc:creator>Haripinnoju</dc:creator>
      <dc:date>2023-06-23T08:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: dax query to count the number of quarters for different years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-query-to-count-the-number-of-quarters-for-different-years/m-p/3299388#M122997</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="471395" data-lia-user-login="Haripinnoju" class="lia-mention lia-mention-user"&gt;Haripinnoju&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Measure8 =&lt;BR /&gt;COUNTROWS (&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;'vcontacts and TO SUPPLIER DOC',&lt;BR /&gt;'vcontacts and TO SUPPLIER DOC'[QUARTER],&lt;BR /&gt;'vcontacts and TO SUPPLIER DOC'[YEAR]&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 08:37:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-query-to-count-the-number-of-quarters-for-different-years/m-p/3299388#M122997</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-23T08:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: dax query to count the number of quarters for different years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-query-to-count-the-number-of-quarters-for-different-years/m-p/3299392#M122999</link>
      <description>&lt;P&gt;Your query is right only write COUNTROWS instead of DISTINCTCOUNT&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 08:39:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-query-to-count-the-number-of-quarters-for-different-years/m-p/3299392#M122999</guid>
      <dc:creator>devanshi</dc:creator>
      <dc:date>2023-06-23T08:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: dax query to count the number of quarters for different years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-query-to-count-the-number-of-quarters-for-different-years/m-p/3299404#M123001</link>
      <description>&lt;P&gt;thank you,&amp;nbsp;&lt;BR /&gt;how to remove the blank quarter count from it.&lt;BR /&gt;It must show only 8. It should count only the quarter which has data in it.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 08:48:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-query-to-count-the-number-of-quarters-for-different-years/m-p/3299404#M123001</guid>
      <dc:creator>Haripinnoju</dc:creator>
      <dc:date>2023-06-23T08:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: dax query to count the number of quarters for different years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-query-to-count-the-number-of-quarters-for-different-years/m-p/3299503#M123015</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="471395" data-lia-user-login="Haripinnoju" class="lia-mention lia-mention-user"&gt;Haripinnoju&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure19 =&lt;BR /&gt;COUNTROWS (&lt;BR /&gt;FILTER (&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;'vcontacts and TO SUPPLIER DOC',&lt;BR /&gt;'vcontacts and TO SUPPLIER DOC'[QUARTER],&lt;BR /&gt;'vcontacts and TO SUPPLIER DOC'[YEAR]&lt;BR /&gt;),&lt;BR /&gt;'vcontacts and TO SUPPLIER DOC'[QUARTER] &amp;lt;&amp;gt; BLANK ()&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 09:50:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-query-to-count-the-number-of-quarters-for-different-years/m-p/3299503#M123015</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-23T09:50:27Z</dc:date>
    </item>
  </channel>
</rss>

