<?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 only store A and Bs opening per month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-only-store-A-and-Bs-opening-per-month/m-p/4300172#M170762</link>
    <description>&lt;P&gt;Fantastic thanks for your help, how would i build another measure creating a running total of the stores opening currently I have a column of dates (month/year) and (thanks to your help a column of stores openeing Jan 4, Feb 6 etc i would like anoyther column which shows a runnning total so Jan 4, feb 10 etc&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2024 15:31:32 GMT</pubDate>
    <dc:creator>Jay2022</dc:creator>
    <dc:date>2024-11-25T15:31:32Z</dc:date>
    <item>
      <title>Count only store A and Bs opening per month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-only-store-A-and-Bs-opening-per-month/m-p/4299868#M170749</link>
      <description>&lt;P&gt;What i'm trying to work out is the numnber of store A and Bs (combined) opening for each month like so&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nov 24 - 4&lt;/P&gt;&lt;P&gt;Dec 24 - 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;and so on&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not counting opening dates for stores C and D&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have come across something like this below but i'm not sure how to filter to include only store A and B or if i'm even on the right track at all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count of Stores Opening=&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; COUNTA('Table'[Store Opening Date]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; FILTER(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ALLSELECTED('Table’[Month Number]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ISONORAFTER('Table'[Month Number], MAX('Table'[Month Number]), DESC)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help greatly apprciated&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 12:10:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-only-store-A-and-Bs-opening-per-month/m-p/4299868#M170749</guid>
      <dc:creator>Jay2022</dc:creator>
      <dc:date>2024-11-25T12:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count only store A and Bs opening per month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-only-store-A-and-Bs-opening-per-month/m-p/4299896#M170754</link>
      <description>&lt;P&gt;It looks like you’re on the right track with your DAX formula, but you’ll need to add a condition to filter for only stores A and B. Here’s how you can modify your formula to count the openings of only stores A and B:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;Count of Stores Opening = 
CALCULATE(
    COUNTA('Table'[Store Opening Date]),
    FILTER(
        ALLSELECTED('Table'),
        'Table'[Store Type] IN {"A", "B"} &amp;amp;&amp;amp;
        ISONORAFTER('Table'[Month Number], MAX('Table'[Month Number]), DESC)
    )
)&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;In this modified formula:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FILTER&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;function now includes a condition to check if the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Store Type&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is either “A” or “B”.&lt;/LI&gt;&lt;LI&gt;This ensures that only the opening dates for stores A and B are counted.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You can adjust the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Store Type&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;field name if it differs in your dataset. This should give you the count of store openings for A and B combined, per month.&lt;/P&gt;&lt;P&gt;If you have any more questions or need further assistance, feel free to ask!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 12:32:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-only-store-A-and-Bs-opening-per-month/m-p/4299896#M170754</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2024-11-25T12:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Count only store A and Bs opening per month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-only-store-A-and-Bs-opening-per-month/m-p/4299953#M170756</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="392269" data-lia-user-login="Jay2022" class="lia-mention lia-mention-user"&gt;Jay2022&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Count of Stores Opening = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTA('Table'[Store Opening Date]),&lt;BR /&gt;FILTER(&lt;BR /&gt;'Table',&lt;BR /&gt;'Table'[Store Type] IN {"A", "B"} &amp;amp;&amp;amp;&lt;BR /&gt;'Table'[Store Opening Date] &amp;lt;= MAX('Table'[Store Opening Date])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":love_letter:"&gt;💌&lt;/span&gt; If this helped, a Kudos &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; or Solution mark would be great! &lt;span class="lia-unicode-emoji" title=":party_popper:"&gt;🎉&lt;/span&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Kedar&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/kedar-pande" target="_blank" rel="noopener"&gt;Connect on LinkedIn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 13:27:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-only-store-A-and-Bs-opening-per-month/m-p/4299953#M170756</guid>
      <dc:creator>Kedar_Pande</dc:creator>
      <dc:date>2024-11-25T13:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Count only store A and Bs opening per month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-only-store-A-and-Bs-opening-per-month/m-p/4300172#M170762</link>
      <description>&lt;P&gt;Fantastic thanks for your help, how would i build another measure creating a running total of the stores opening currently I have a column of dates (month/year) and (thanks to your help a column of stores openeing Jan 4, Feb 6 etc i would like anoyther column which shows a runnning total so Jan 4, feb 10 etc&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 15:31:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-only-store-A-and-Bs-opening-per-month/m-p/4300172#M170762</guid>
      <dc:creator>Jay2022</dc:creator>
      <dc:date>2024-11-25T15:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Count only store A and Bs opening per month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-only-store-A-and-Bs-opening-per-month/m-p/4303708#M170882</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 08:23:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-only-store-A-and-Bs-opening-per-month/m-p/4303708#M170882</guid>
      <dc:creator>Jay2022</dc:creator>
      <dc:date>2024-11-27T08:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count only store A and Bs opening per month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-only-store-A-and-Bs-opening-per-month/m-p/4303739#M170885</link>
      <description>&lt;P&gt;You are always wellcome.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 08:31:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-only-store-A-and-Bs-opening-per-month/m-p/4303739#M170885</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2024-11-27T08:31:02Z</dc:date>
    </item>
  </channel>
</rss>

