<?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 Counting number of inspections using dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-inspections-using-dates/m-p/2822559#M89628</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a sharepoint file with a list of inspections made for my company. I have columns there with a date of inspection and date of delivered report (from the inspection).&lt;BR /&gt;&lt;BR /&gt;I want to count how many inspections have report delivered in less than 5 days.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you help me? Thank you&lt;BR /&gt;&lt;BR /&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2022 11:27:47 GMT</pubDate>
    <dc:creator>FILIPKACZMAR</dc:creator>
    <dc:date>2022-10-06T11:27:47Z</dc:date>
    <item>
      <title>Counting number of inspections using dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-inspections-using-dates/m-p/2822559#M89628</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a sharepoint file with a list of inspections made for my company. I have columns there with a date of inspection and date of delivered report (from the inspection).&lt;BR /&gt;&lt;BR /&gt;I want to count how many inspections have report delivered in less than 5 days.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you help me? Thank you&lt;BR /&gt;&lt;BR /&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 11:27:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-inspections-using-dates/m-p/2822559#M89628</guid>
      <dc:creator>FILIPKACZMAR</dc:creator>
      <dc:date>2022-10-06T11:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Counting number of inspections using dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-inspections-using-dates/m-p/2822682#M89640</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would break the problem down into 2 steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Create a column with the difference between the two dates. Something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;date difference = DATEDIFF(&amp;lt;Date1&amp;gt;, &amp;lt;Date2&amp;gt;)  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Next, create another column, [Difference of less than 5 days], that says&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Difference of less than 5 days = if( [date difference] &amp;lt; 5, "Yes","No")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;(note that you can change the Y/N to boolean instead)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then in a table visualisation, you can add [Difference of less than 5 days] twice and change the setting of one of them to "Count of"&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 12:19:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-inspections-using-dates/m-p/2822682#M89640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-06T12:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Counting number of inspections using dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-inspections-using-dates/m-p/2825000#M89795</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 08:23:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-number-of-inspections-using-dates/m-p/2825000#M89795</guid>
      <dc:creator>FILIPKACZMAR</dc:creator>
      <dc:date>2022-10-07T08:23:33Z</dc:date>
    </item>
  </channel>
</rss>

