<?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: DAX to calculate the 7 days and last 14 days activity. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-calculate-the-7-days-and-last-14-days-activity/m-p/920231#M9062</link>
    <description>&lt;P&gt;Hi, wondering if i can piggyback on my ask &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;Instead of the last 7 days... what if i now wanted a range say between 7 and 14 days? I'm not sure what i do with the TODAY () function so that is starts at 7 days?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Mon, 03 Feb 2020 20:23:58 GMT</pubDate>
    <dc:creator>sharpedogs</dc:creator>
    <dc:date>2020-02-03T20:23:58Z</dc:date>
    <item>
      <title>DAX to calculate the 7 days and last 14 days activity.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-calculate-the-7-days-and-last-14-days-activity/m-p/920137#M9055</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can do this easily using the the filter, but I really want to do it using DAX.&lt;/P&gt;&lt;P&gt;I've tried multiple "lastdate" variations but i'm not sure the syntext to move it back 7 or 14 days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a the below table and i simply want a DAX that counts the number of devices that last log on in the past 7 days. i'll replacate that formular to then account for the last 14 days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Device Name&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Last Logon Date&lt;/TD&gt;&lt;TD&gt;Confidence Level&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA&lt;/TD&gt;&lt;TD&gt;Jan 29&lt;/TD&gt;&lt;TD&gt;Medium&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BBB&lt;/TD&gt;&lt;TD&gt;Jan 3&lt;/TD&gt;&lt;TD&gt;High&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CC&lt;/TD&gt;&lt;TD&gt;April 21&lt;/TD&gt;&lt;TD&gt;Medium&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 18:37:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-calculate-the-7-days-and-last-14-days-activity/m-p/920137#M9055</guid>
      <dc:creator>sharpedogs</dc:creator>
      <dc:date>2020-02-03T18:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to calculate the 7 days and last 14 days activity.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-calculate-the-7-days-and-last-14-days-activity/m-p/920146#M9056</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="172151" data-lia-user-login="sharpedogs" class="lia-mention lia-mention-user"&gt;sharpedogs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = CALCULATE(COUNTROWS('Table');'Table'[Last Logon Date]&amp;gt;=today()-7)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 18:47:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-calculate-the-7-days-and-last-14-days-activity/m-p/920146#M9056</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-02-03T18:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to calculate the 7 days and last 14 days activity.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-calculate-the-7-days-and-last-14-days-activity/m-p/920185#M9060</link>
      <description>&lt;P&gt;Tried.... and worked perfectly!!!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 19:27:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-calculate-the-7-days-and-last-14-days-activity/m-p/920185#M9060</guid>
      <dc:creator>sharpedogs</dc:creator>
      <dc:date>2020-02-03T19:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to calculate the 7 days and last 14 days activity.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-calculate-the-7-days-and-last-14-days-activity/m-p/920231#M9062</link>
      <description>&lt;P&gt;Hi, wondering if i can piggyback on my ask &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;Instead of the last 7 days... what if i now wanted a range say between 7 and 14 days? I'm not sure what i do with the TODAY () function so that is starts at 7 days?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Feb 2020 20:23:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-calculate-the-7-days-and-last-14-days-activity/m-p/920231#M9062</guid>
      <dc:creator>sharpedogs</dc:creator>
      <dc:date>2020-02-03T20:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to calculate the 7 days and last 14 days activity.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-calculate-the-7-days-and-last-14-days-activity/m-p/920248#M9063</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="172151" data-lia-user-login="sharpedogs" class="lia-mention lia-mention-user"&gt;sharpedogs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = CALCULATE(COUNTROWS('Table');'Table'[Last Logon Date]&amp;gt;=today()-14;'Table'[Last Logon Date]&amp;lt;=today()-7)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 20:38:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-calculate-the-7-days-and-last-14-days-activity/m-p/920248#M9063</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-02-03T20:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to calculate the 7 days and last 14 days activity.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-calculate-the-7-days-and-last-14-days-activity/m-p/920418#M9066</link>
      <description>&lt;P&gt;Why is it so simply when you provide the answer....lol&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 00:44:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-calculate-the-7-days-and-last-14-days-activity/m-p/920418#M9066</guid>
      <dc:creator>sharpedogs</dc:creator>
      <dc:date>2020-02-04T00:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to calculate the 7 days and last 14 days activity.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-calculate-the-7-days-and-last-14-days-activity/m-p/921328#M9099</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="172151" data-lia-user-login="sharpedogs" class="lia-mention lia-mention-user"&gt;sharpedogs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it's a practice question.&lt;/P&gt;&lt;P&gt;good luck and welcome to power bi! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 14:46:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-calculate-the-7-days-and-last-14-days-activity/m-p/921328#M9099</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-02-04T14:46:40Z</dc:date>
    </item>
  </channel>
</rss>

