<?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 Count number of items with growth in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-items-with-growth/m-p/3716922#M144689</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have done the Month Over Month Calculation,&amp;nbsp;Year Over Year Calculation and I would like to have a card visual that counts the number of items where there is an increase from this table visual.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2024 11:03:08 GMT</pubDate>
    <dc:creator>moses07_ferns</dc:creator>
    <dc:date>2024-02-22T11:03:08Z</dc:date>
    <item>
      <title>Count number of items with growth</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-items-with-growth/m-p/3716922#M144689</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have done the Month Over Month Calculation,&amp;nbsp;Year Over Year Calculation and I would like to have a card visual that counts the number of items where there is an increase from this table visual.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 11:03:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-items-with-growth/m-p/3716922#M144689</guid>
      <dc:creator>moses07_ferns</dc:creator>
      <dc:date>2024-02-22T11:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of items with growth</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-items-with-growth/m-p/3718348#M144776</link>
      <description>&lt;P&gt;Do a SUMMARIZE over the items in your table visual, then ADDCOLUMNS to materialize the "increase"&amp;nbsp; measure (whatever that is).&amp;nbsp; Then return the COUNTROWS of the filtered virtual table.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 22:57:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-items-with-growth/m-p/3718348#M144776</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-22T22:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of items with growth</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-items-with-growth/m-p/3723168#M144988</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="646487" data-lia-user-login="moses07_ferns" class="lia-mention lia-mention-user"&gt;moses07_ferns&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Based on your description, I have created some measures to achieve the effect you are looking for. Following picture shows the effect of the display.&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;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MoM% =

VAR _prevValue =

    SELECTEDVALUE ( 'Table'[Prev Month] )

VAR _curValue =

    SELECTEDVALUE ( 'Table'[Cur Month] )

VAR _PreDivCur =

    CALCULATE ( DIVIDE ( _prevValue, _curValue ) )

VAR _CurDivPre =

    CALCULATE ( DIVIDE ( _curValue, _prevValue ) )

RETURN

    IF ( _curValue &amp;gt; _prevValue, _CurDivPre, - ( _PreDivCur ) )



DistinctCountSales =

Counts =

CALCULATE (

    DISTINCTCOUNT ( 'Table'[Cur Month] ),

    FILTER ( 'Table', [MoM%] &amp;gt; 0 )

)

&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;to&lt;/STRONG&gt; help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to get your questions answered quickly&lt;/A&gt;&amp;nbsp;--&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;&amp;nbsp;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 07:46:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-items-with-growth/m-p/3723168#M144988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-26T07:46:02Z</dc:date>
    </item>
  </channel>
</rss>

