<?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: How to create a dax Created MTD , Last 7 Days and Last 24 hours in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-dax-Created-MTD-Last-7-Days-and-Last-24-hours/m-p/4189137#M166364</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/569579"&gt;@Pavani&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to create 7 measures for like the below...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. For Created Tickets below similarly create for Cosed and Inprogreess by changing the filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;CreatedTickets = &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;CALCULATE(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;COUNTROWS('Incident Data'),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Incident Data'[Ticket Type] = "Incident",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Incident Data'[Priority] IN {"P1", "P2"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;MONTH('Incident Data'[Submit Date]) = MONTH(TODAY()))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. For Aging Tickets you need to apply various filter and create logic I have creacted for couple fo them please try to creat for other with simi;ar logics by changing the Days bucket accordingly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Open0to7Days = &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;CALCULATE(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;COUNTROWS('Incident Data'),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Incident Data'[Ticket Type] = "Incident",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Incident Data'[Priority] IN {"P1", "P2"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;DATEDIFF('Incident Data'[Submit Date], TODAY(), DAY) &amp;lt;= 7,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ISBLANK('Incident Data'[Resolved Date]))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;OpenGreaterThan31Days = &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;CALCULATE(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;COUNTROWS('Incident Data'),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Incident Data'[Ticket Type] = "Incident",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Incident Data'[Priority] IN {"P1", "P2"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;DATEDIFF('Incident Data'[Submit Date], TODAY(), DAY) &amp;gt; 31,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ISBLANK('Incident Data'[Resolved Date]))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes are much appreciated!&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Dharmendar S&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/dharmendar-s-b5b43463/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIN&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 28 Sep 2024 07:51:00 GMT</pubDate>
    <dc:creator>dharmendars007</dc:creator>
    <dc:date>2024-09-28T07:51:00Z</dc:date>
    <item>
      <title>How to create a dax Created MTD , Last 7 Days and Last 24 hours</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-dax-Created-MTD-Last-7-Days-and-Last-24-hours/m-p/4184981#M166185</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hi ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please help to create a DAX as per below request .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Incident Data P1 &amp;amp; P2 tickets Table: ( MTD Status)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Created Tickets: Created data account, ticket type incident, Priority High and critical (P1 &amp;amp; P2), MTD data for Submit Date.&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Closed Tickets : Closed data account, ticket type incident, Priority High and critical (P1 &amp;amp; P2), MTD data for Resolved / Completed Date.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; In Progress Tickets : Open data account, ticket type incident, Priority High and critical (P1 &amp;amp; P2). &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;0-7 Days = Open data account, ticket type incident, Priority High and critical (P1 &amp;amp; P2), Aging Days less than 8 days.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is &amp;gt;7 Days = Open data account, ticket type incident, Priority High and critical (P1 &amp;amp; P2), Aging Days Greater than 8 days less than 16 Days.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is&amp;nbsp; &amp;gt; 15 Days = Open data account, ticket type incident, Priority High and critical (P1 &amp;amp; P2), Aging Days Greater than 16 days less than 31 Days.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is &amp;gt;31 Days = Open data account, ticket type incident, Priority High and critical (P1 &amp;amp; P2), Aging Days Greater than 31 days.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pavani. K&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 16:26:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-dax-Created-MTD-Last-7-Days-and-Last-24-hours/m-p/4184981#M166185</guid>
      <dc:creator>Pavani</dc:creator>
      <dc:date>2024-09-27T16:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dax Created MTD , Last 7 Days and Last 24 hours</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-dax-Created-MTD-Last-7-Days-and-Last-24-hours/m-p/4185108#M166187</link>
      <description>&lt;P&gt;I guess it would require to create 7 measures.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 17:23:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-dax-Created-MTD-Last-7-Days-and-Last-24-hours/m-p/4185108#M166187</guid>
      <dc:creator>SachinNandanwar</dc:creator>
      <dc:date>2024-09-27T17:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dax Created MTD , Last 7 Days and Last 24 hours</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-dax-Created-MTD-Last-7-Days-and-Last-24-hours/m-p/4185183#M166190</link>
      <description>&lt;P&gt;Yes, How I need to create DAX for this requirements , please help on to resolve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 18:12:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-dax-Created-MTD-Last-7-Days-and-Last-24-hours/m-p/4185183#M166190</guid>
      <dc:creator>Pavani</dc:creator>
      <dc:date>2024-09-27T18:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dax Created MTD , Last 7 Days and Last 24 hours</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-dax-Created-MTD-Last-7-Days-and-Last-24-hours/m-p/4189137#M166364</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/569579"&gt;@Pavani&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to create 7 measures for like the below...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. For Created Tickets below similarly create for Cosed and Inprogreess by changing the filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;CreatedTickets = &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;CALCULATE(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;COUNTROWS('Incident Data'),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Incident Data'[Ticket Type] = "Incident",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Incident Data'[Priority] IN {"P1", "P2"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;MONTH('Incident Data'[Submit Date]) = MONTH(TODAY()))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. For Aging Tickets you need to apply various filter and create logic I have creacted for couple fo them please try to creat for other with simi;ar logics by changing the Days bucket accordingly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Open0to7Days = &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;CALCULATE(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;COUNTROWS('Incident Data'),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Incident Data'[Ticket Type] = "Incident",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Incident Data'[Priority] IN {"P1", "P2"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;DATEDIFF('Incident Data'[Submit Date], TODAY(), DAY) &amp;lt;= 7,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ISBLANK('Incident Data'[Resolved Date]))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;OpenGreaterThan31Days = &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;CALCULATE(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;COUNTROWS('Incident Data'),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Incident Data'[Ticket Type] = "Incident",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Incident Data'[Priority] IN {"P1", "P2"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;DATEDIFF('Incident Data'[Submit Date], TODAY(), DAY) &amp;gt; 31,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ISBLANK('Incident Data'[Resolved Date]))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes are much appreciated!&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Dharmendar S&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/dharmendar-s-b5b43463/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIN&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Sep 2024 07:51:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-dax-Created-MTD-Last-7-Days-and-Last-24-hours/m-p/4189137#M166364</guid>
      <dc:creator>dharmendars007</dc:creator>
      <dc:date>2024-09-28T07:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dax Created MTD , Last 7 Days and Last 24 hours</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-dax-Created-MTD-Last-7-Days-and-Last-24-hours/m-p/4198911#M166635</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/569579"&gt;@Pavani&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can try formula like below to create measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Aging0to7Days = 
CALCULATE(
    COUNTROWS('Incident Data'),
    'Incident Data'[Ticket Type] = "incident",
    'Incident Data'[Priority] IN {"High", "Critical"},
    'Incident Data'[Aging Days] &amp;lt; 8
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Aging8to15Days = 
CALCULATE(
    COUNTROWS('Incident Data'),
    'Incident Data'[Ticket Type] = "incident",
    'Incident Data'[Priority] IN {"High", "Critical"},
    'Incident Data'[Aging Days] &amp;gt;= 8,
    'Incident Data'[Aging Days] &amp;lt;= 15
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Aging16to31Days = 
CALCULATE(
    COUNTROWS('Incident Data'),
    'Incident Data'[Ticket Type] = "incident",
    'Incident Data'[Priority] IN {"High", "Critical"},
    'Incident Data'[Aging Days] &amp;gt; 15,
    'Incident Data'[Aging Days] &amp;lt;= 31
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vkongfanfmsft_0-1727683040473.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1175656iAAF4F11AB69536B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vkongfanfmsft_0-1727683040473.png" alt="vkongfanfmsft_0-1727683040473.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 07:59:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-dax-Created-MTD-Last-7-Days-and-Last-24-hours/m-p/4198911#M166635</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-30T07:59:28Z</dc:date>
    </item>
  </channel>
</rss>

