<?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 of rolling count in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386723#M61865</link>
    <description>&lt;P&gt;I think I understand. You want to figure for February to be the total of each day in February added together.&lt;/P&gt;&lt;P&gt;Rename my original measure as Frequent Users ( daily ) then try&lt;/P&gt;&lt;PRE&gt;Frequent Users ( monthly ) = SUMX( &lt;BR /&gt;    ADDCOLUMNS( VALUES( 'Date'[Date]), "@daily", [Frequent Users ( daily )],&lt;BR /&gt;    [@daily]&lt;BR /&gt;)&lt;/PRE&gt;</description>
    <pubDate>Thu, 10 Mar 2022 15:32:37 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2022-03-10T15:32:37Z</dc:date>
    <item>
      <title>Count of rolling count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2383930#M61713</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you are doing well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me with the following matter? I am pretty new to PowerBI and I am struggling with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables:&lt;/P&gt;&lt;P&gt;- A visitor table, there is one row per visitor connected to the platform per day. For instance, if the timeperiod is of 30 days, there can be up to 30 rows for each visitor.&lt;/P&gt;&lt;P&gt;- A calendar table, with all the dates of the visitor table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following, the number of frequent vs engaged visitors per month.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I would want the same thing but on a 30-day rolling basis. The graph I am looking for is the number of frequent and engaged visitors for everyday, knowing that the data each day represents the data for the count for the 30 days prior to that day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought of separating frequent and engaged into two different measures. Here would be the pseudo code for the frequent users:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;currentDate&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;date30DaysAgo&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;FIRSTDATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;, -&lt;/SPAN&gt;&lt;SPAN&gt;30&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;DAY&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER(SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Visitors'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Visitors'[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;currentDate&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Visitors'[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;date30DaysAgo&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;"COUNT"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Visitors'[ID]&lt;/SPAN&gt;&lt;SPAN&gt;)), COUNT &amp;lt; 15)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I still cannot get my hands on the correct formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am at your disposal should you have any questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 16:23:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2383930#M61713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-09T16:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count of rolling count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2384024#M61719</link>
      <description>&lt;PRE&gt;Frequent users =&lt;BR /&gt;var maxDate = MAX('calendar'[Date])&lt;BR /&gt;var minDate = maxDate - 30&lt;BR /&gt;var summaryTable = ADDCOLUMNS( SUMMARIZE( 'Visitors', 'Visitors'[ID]), "@num visits", CALCULATE( COUNTROWS('Visitors'),&lt;BR /&gt;    REMOVEFILTERS('calendar'), 'Visitors'[Date] &amp;gt;= minDate &amp;amp;&amp;amp; 'Visitors'[Date] &amp;lt;= maxDate ) )&lt;BR /&gt;return COUNTROWS( FILTER( summaryTable, [@num visits] &amp;gt;= 5 &amp;amp; [@num visits] &amp;lt;= 15 ) )&lt;/PRE&gt;&lt;P&gt;would return the number of visitors with between 5 and 15 visits in the preceding 30 days.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 17:18:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2384024#M61719</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-09T17:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Count of rolling count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2384040#M61722</link>
      <description>&lt;P&gt;Thank you for your response Johnt75.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you know how to do it on a rolling basis? I need to calculate it by/for every 30 days period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 17:27:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2384040#M61722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-09T17:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count of rolling count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2384098#M61725</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you please define Frequent and Engaged visitors? Can you share the existing measures you have? Are these two measures working fine?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 18:00:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2384098#M61725</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-09T18:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Count of rolling count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2384111#M61727</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use whatever you want for Frequent and Engaged. My problem is to:&lt;/P&gt;&lt;P&gt;1) Count the Frequent and Engaged on a 30 day rolling basis;&lt;/P&gt;&lt;P&gt;2) Then count the previous count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 18:10:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2384111#M61727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-09T18:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count of rolling count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2384536#M61749</link>
      <description>&lt;P&gt;Good morning&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may try the following&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Moving Total Measure =
VAR PeriodNumOfDays = 30
VAR FirstDateInFilter =
    MIN ( 'calendar'[Date] )
VAR LastDateInFilter =
    MAX ( 'calendar'[Date] )
VAR DatePeriodTable =
    DATESINPERIOD ( 'calendar'[Date], LastDateInFilter, - PeriodNumOfDays, DAY )
VAR LastDateWithData =
    MAX ( 'Visitors'[Date] )
VAR Result =
    CALCULATE ( [Measure], DatePeriodTable )
RETURN
    IF ( FirstDateInFilter &amp;lt;= LastDateWithData, Result )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 10 Mar 2022 01:49:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2384536#M61749</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-10T01:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Count of rolling count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2385617#M61780</link>
      <description>&lt;P&gt;This will work on a rolling basis, if you use Year and Month from your calendar table on the axis of a line chart, for example, then it will work out the 30 day figure as at the end of each month&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 09:08:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2385617#M61780</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-10T09:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count of rolling count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386402#M61843</link>
      <description>&lt;P&gt;Thank you both for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to put together that formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;test = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;currentDate&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;date30DaysAgo&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;FIRSTDATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;, -&lt;/SPAN&gt;&lt;SPAN&gt;30&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;DAY&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt; &lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Visitors&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Visitors'[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;currentDate&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Visitors'[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;date30DaysAgo&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;Visitors[Visitor ID]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"COUNT"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Visitors[Visitor ID]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;[COUNT]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It works but it calculates the number of active visitors everyday. I need the number of visitors for the last 30 days. I do not know where my error comes from.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Mar 2022 13:49:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386402#M61843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-10T13:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Count of rolling count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386709#M61864</link>
      <description>&lt;P&gt;Hi johnt75,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested again your formula. It works well in the sense it is possible to filter the count of logins for the previous 30 days for each date but the number of visitors displayed on the plot is the number of users of the day not of the month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To give a more precise example: it seems that on February 28th it filters the visitors of the previous 30 days but only out the visitors of the 28th.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please tell me if you have any questions and thank you again for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 15:25:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386709#M61864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-10T15:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Count of rolling count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386723#M61865</link>
      <description>&lt;P&gt;I think I understand. You want to figure for February to be the total of each day in February added together.&lt;/P&gt;&lt;P&gt;Rename my original measure as Frequent Users ( daily ) then try&lt;/P&gt;&lt;PRE&gt;Frequent Users ( monthly ) = SUMX( &lt;BR /&gt;    ADDCOLUMNS( VALUES( 'Date'[Date]), "@daily", [Frequent Users ( daily )],&lt;BR /&gt;    [@daily]&lt;BR /&gt;)&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Mar 2022 15:32:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386723#M61865</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-10T15:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Count of rolling count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386768#M61872</link>
      <description>&lt;P&gt;Thank you for your answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not exactly, I apologize for being unclear, I investigated a bit more in the meantime, to be more precise:&lt;/P&gt;&lt;P&gt;The problem with the first formula you shared, and I do not know why, is that everything is done for the current day and only for the current day. It does not take the 30 previous days in the calculations. So, currently, on the 28th of February, the num visits only filters the 28th of February. I would need it to filter the 30 days before the 28th of February.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the Frequent Users Month but it does not change anything, I think there is an aggregate that does not work properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot thank you enough for your help! I help I was a bit clearer&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 15:58:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386768#M61872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-10T15:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count of rolling count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386819#M61879</link>
      <description>&lt;P&gt;To develop my idea: I would need a summary table with the visitors id for the last 30 days and not for the day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do it on my side too!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 16:21:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386819#M61879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-10T16:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count of rolling count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386821#M61880</link>
      <description>&lt;P&gt;OK, try&lt;/P&gt;&lt;PRE&gt;Frequent users ( monthly ) =&lt;BR /&gt;var currentDate = MAX('Date'[Date])&lt;BR /&gt; &lt;SPAN&gt;RETURN&lt;/SPAN&gt; &lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt; &lt;SPAN&gt;ADDCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt; &lt;SPAN&gt;DATESBETWEEN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt; &lt;SPAN&gt;'Date'[Date]&lt;/SPAN&gt;, currentDate - &lt;SPAN&gt;30&lt;/SPAN&gt;, currentDate &lt;SPAN&gt;),&lt;BR /&gt;&lt;/SPAN&gt;   "@daily", [Frequent users ( daily )] ), [@daily] )&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Mar 2022 16:21:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386821#M61880</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-10T16:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Count of rolling count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386847#M61881</link>
      <description>&lt;P&gt;It produces some wrong numbers, I think that this calculation must be done at the summarize level in this measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Frequent users =&lt;BR /&gt;var maxDate = MAX('calendar'[Date])&lt;BR /&gt;var minDate = maxDate - 30&lt;BR /&gt;var summaryTable = ADDCOLUMNS( SUMMARIZE( 'Visitors', 'Visitors'[ID]), "@num visits", CALCULATE( COUNTROWS('Visitors'),&lt;BR /&gt;    REMOVEFILTERS('calendar'), 'Visitors'[Date] &amp;gt;= minDate &amp;amp;&amp;amp; 'Visitors'[Date] &amp;lt;= maxDate ) )&lt;BR /&gt;return COUNTROWS( FILTER( summaryTable, [@num visits] &amp;gt;= 5 &amp;amp; [@num visits] &amp;lt;= 15 ) )&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Mar 2022 16:31:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386847#M61881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-10T16:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count of rolling count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386933#M61889</link>
      <description>&lt;P&gt;You could try wrapping the summary table in a GENERATE, like&lt;/P&gt;&lt;PRE&gt;var summaryTable = GENERATE( DATESBETWEEN( 'Date'[Date], minDate, maxDate), use existing summary definition here )&lt;/PRE&gt;&lt;P&gt;that should give a table which is effectively 1 summary table for each day in the preceding 30 days&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 17:09:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386933#M61889</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-10T17:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count of rolling count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386956#M61893</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried this solution?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 17:23:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386956#M61893</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-10T17:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Count of rolling count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386985#M61896</link>
      <description>&lt;P&gt;Actually, your very first formula was what I wanted. I cannot thank you enough. I did not think of using add columns and it is what I needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great week (soon weekend)!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 17:38:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-rolling-count/m-p/2386985#M61896</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-10T17:38:54Z</dc:date>
    </item>
  </channel>
</rss>

