<?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: Frequency between dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-between-dates/m-p/2633588#M77139</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your message.&lt;BR /&gt;Sorry that I do not know how to create a sample that suits your situation, and p&lt;SPAN&gt;lease share your sample pbix file's link here. And then I can try to look into to it to come up with a more accurate solution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jul 2022 12:04:18 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2022-07-12T12:04:18Z</dc:date>
    <item>
      <title>Frequency between dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-between-dates/m-p/2631466#M76995</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a basic BI user and need help with a measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would also like an explanation of what you are doing so I can learn &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table of AAD logins.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each login has a userID, loginCountry, loginDate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to produce a table that shows for each loginCountry, how many high-frequency-logins (5 logins within 2 days) occured and when the first and last of thise were.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate you teachers.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 14:54:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-between-dates/m-p/2631466#M76995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-11T14:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency between dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-between-dates/m-p/2631829#M77015</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;I assume the requirement is to find how many users are the high-frequency-login (more than five per each country) between two dates.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;LI-CODE lang="markup"&gt;Login count measure: = 
COUNTROWS( Data )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;High frequency login users: = 
SUMX (
    VALUES ( Country[Login Country] ),
    CALCULATE (
        COUNTROWS (
            FILTER (
                ADDCOLUMNS ( VALUES ( UserID[User ID] ), "@logincount", [Login count measure:] ),
                [@logincount] &amp;gt; 5
            )
        )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 11 Jul 2022 17:42:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-between-dates/m-p/2631829#M77015</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-07-11T17:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency between dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-between-dates/m-p/2632920#M77083</link>
      <description>&lt;P&gt;Hi Kim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your time here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This certainly seems like a good start. However, for this report the definiton of 'high frequency' is a user that has logged in 5 times or more at a specific location within a period of ANY 2 days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know when those 2 days might be, so using a slicer will not work. The measure I am trying to write must return 'users where 5 or more logins were made at an &lt;STRONG&gt;individual&lt;/STRONG&gt; country &lt;STRONG&gt;within&lt;/STRONG&gt; a 2 day period'.&lt;/P&gt;&lt;P&gt;I would like to see which country, user, date period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So;&lt;/P&gt;&lt;P&gt;if user A logged in once a day for a week in London - &lt;FONT color="#FF0000"&gt;i don't care.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;If user A logged in 3 times on Jan 1st in Hawai and then 3 times on the 2nd in Paris - &lt;FONT color="#FF0000"&gt;i don't care.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;if user A logged in twice on Feb 1st in New York and 3 times on the 2nd in New York - &lt;FONT color="#00FF00"&gt;i need to see that&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#00FF00"&gt;&lt;FONT color="#000000"&gt;if user A logged in twice on Mar 1st in Mexico and 3 times on the 2nd in Mexico -&lt;/FONT&gt; i need to that &lt;STRONG&gt;aswell&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Terry&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 08:05:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-between-dates/m-p/2632920#M77083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-12T08:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency between dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-between-dates/m-p/2633588#M77139</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your message.&lt;BR /&gt;Sorry that I do not know how to create a sample that suits your situation, and p&lt;SPAN&gt;lease share your sample pbix file's link here. And then I can try to look into to it to come up with a more accurate solution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 12:04:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Frequency-between-dates/m-p/2633588#M77139</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-07-12T12:04:18Z</dc:date>
    </item>
  </channel>
</rss>

