<?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 Number of type a and b stores opening by month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Number-of-type-a-and-b-stores-opening-by-month/m-p/4260851#M168865</link>
    <description>&lt;P&gt;So This problem is in 2 parts&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly I want to calculate accumulative totals of store a and b types opening by end of september, october, nov and so on&amp;nbsp;&lt;/P&gt;&lt;P&gt;one column store type with vaules a,b, c and d another column dates&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;secondly i have measure which have counted total number of stores (TOTAL_NO_STORES) and another which as counted number os stores c and d (C&amp;amp;D) which have already opened therefore i want to plot number of store a and b's each month add them to the the total already opened stores and divide this by total number of stores so it should go up septemner 80%, october 83% and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help greatly appreciated&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Oct 2024 16:48:11 GMT</pubDate>
    <dc:creator>Jay2022</dc:creator>
    <dc:date>2024-10-28T16:48:11Z</dc:date>
    <item>
      <title>Number of type a and b stores opening by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Number-of-type-a-and-b-stores-opening-by-month/m-p/4260851#M168865</link>
      <description>&lt;P&gt;So This problem is in 2 parts&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly I want to calculate accumulative totals of store a and b types opening by end of september, october, nov and so on&amp;nbsp;&lt;/P&gt;&lt;P&gt;one column store type with vaules a,b, c and d another column dates&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;secondly i have measure which have counted total number of stores (TOTAL_NO_STORES) and another which as counted number os stores c and d (C&amp;amp;D) which have already opened therefore i want to plot number of store a and b's each month add them to the the total already opened stores and divide this by total number of stores so it should go up septemner 80%, october 83% and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help greatly appreciated&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 16:48:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Number-of-type-a-and-b-stores-opening-by-month/m-p/4260851#M168865</guid>
      <dc:creator>Jay2022</dc:creator>
      <dc:date>2024-10-28T16:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Number of type a and b stores opening by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Number-of-type-a-and-b-stores-opening-by-month/m-p/4261175#M168883</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 22:09:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Number-of-type-a-and-b-stores-opening-by-month/m-p/4261175#M168883</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-10-28T22:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Number of type a and b stores opening by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Number-of-type-a-and-b-stores-opening-by-month/m-p/4261402#M168892</link>
      <description>&lt;P&gt;Hi &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;P&gt;Based on the description, please &lt;SPAN&gt;try the following methods:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.Create the sample table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.Create the &lt;/SPAN&gt;&lt;SPAN&gt;measure&lt;/SPAN&gt;&lt;SPAN&gt; to &lt;/SPAN&gt;&lt;SPAN&gt;calculate accumulative totals of store a and b.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cumulative_StoreA = 
    CALCULATE(
        COUNTROWS('Table'),
        FILTER(ALL('Table'),
            'Table'[Date] &amp;lt;= MAX('Table'[Date]) &amp;amp;&amp;amp;
            'Table'[Store Type] = "A"
        )
    )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Cumulative_StoreB = 
    CALCULATE(
        COUNTROWS('Table'),
        FILTER(ALL('Table'),
            'Table'[Date] &amp;lt;= MAX('Table'[Date]) &amp;amp;&amp;amp;
            'Table'[Store Type] = "B"
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;.Create the new measure to calculate the percentage for each month.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Percentage_Opened = 
    DIVIDE(
        [Cumulative_StoreA] + [Cumulative_StoreB] + [C&amp;amp;D],
        [TOTAL_NO_STORES],
        0
    )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;4.&lt;/SPAN&gt;&lt;SPAN&gt;The result is shown below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this 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;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 02:45:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Number-of-type-a-and-b-stores-opening-by-month/m-p/4261402#M168892</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-29T02:45:10Z</dc:date>
    </item>
  </channel>
</rss>

