<?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: Average Days Between Inspections in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3098291#M108802</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;It worked!! Amazing. Thank you so much for your help.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2023 14:55:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-02-24T14:55:42Z</dc:date>
    <item>
      <title>Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3093201#M108424</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to get the average days between inspection dates. Below is a breakdown of current dates by project (with blue and green dots being 2 different projects).&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Below is my attempted DAX for getting the days between inspections, with an average calculation for averages later on:&lt;/P&gt;&lt;PRE&gt;DaysBetweenInspectionsALL = 
VAR CurrentProject = SELECTEDVALUE(Project[ProjectName])
VAR CurrentDate = SELECTEDVALUE('Date of Inspection'[date])
VAR LastInspectionDate = 
    CALCULATE(
    MAX('Date'[Date]),
    FILTER(
        ALL(Project),
        Project[ProjectName] = CurrentProject &amp;amp;&amp;amp;
        SELECTEDVALUE('Date of Inspection'[date]) &amp;lt; CurrentDate))
RETURN 
IF(LastInspectionDate = BLANK(), BLANK(), CurrentDate - LastInspectionDate)&lt;/PRE&gt;&lt;P&gt;However, this has returned all row values as '27/12/1774', even with whole number formatting. I belive this might be from using an incorrect field in the LastInspectionDate variable. Any help would be appreciated, thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 14:57:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3093201#M108424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-22T14:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3093391#M108444</link>
      <description>&lt;P&gt;Try removing the SELECTEDVALUE from the filter and casting the result as an int&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DaysBetweenInspectionsALL =
VAR CurrentProject =
    SELECTEDVALUE ( Project[ProjectName] )
VAR CurrentDate =
    SELECTEDVALUE ( 'Date of Inspection'[date] )
VAR LastInspectionDate =
    CALCULATE (
        MAX ( 'Date'[Date] ),
        FILTER (
            ALL ( Project ),
            Project[ProjectName] = CurrentProject
                &amp;amp;&amp;amp; 'Date of Inspection'[date] &amp;lt; CurrentDate
        )
    )
RETURN
    IF (
        LastInspectionDate = BLANK (),
        BLANK (),
        INT ( CurrentDate - LastInspectionDate )
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 22 Feb 2023 16:00:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3093391#M108444</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-02-22T16:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3093414#M108446</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for this. It is currently saying "cannot find name [date]" for the LastInspectionDate variable! Can this be fixed?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 16:13:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3093414#M108446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-22T16:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3093433#M108448</link>
      <description>&lt;P&gt;How about&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DaysBetweenInspectionsALL =
VAR CurrentProject =
    SELECTEDVALUE ( Project[ProjectName] )
VAR CurrentDate =
    SELECTEDVALUE ( 'Date of Inspection'[date] )
VAR LastInspectionDate =
    CALCULATE (
        MAX ( 'Date'[Date] ),
        REMOVEFILTERS ( Project ),
        Project[ProjectName] = CurrentProject,
        'Date of Inspection'[date] &amp;lt; CurrentDate
    )
RETURN
    IF (
        LastInspectionDate = BLANK (),
        BLANK (),
        INT ( CurrentDate - LastInspectionDate )
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 22 Feb 2023 16:22:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3093433#M108448</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-02-22T16:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3093464#M108453</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Seems like&amp;nbsp;'Date of Inspection' is at the many side od the relationship.&amp;nbsp;&lt;BR /&gt;In this case either to CROSSFILTER-BOTH the relationship or MAXX ( RELATEDTABLE ) like&lt;/P&gt;
&lt;P&gt;DaysBetweenInspectionsALL =&lt;BR /&gt;VAR CurrentProject =&lt;BR /&gt;SELECTEDVALUE ( Project[ProjectName] )&lt;BR /&gt;VAR CurrentDate =&lt;BR /&gt;SELECTEDVALUE ( 'Date of Inspection'[date] )&lt;BR /&gt;VAR LastInspectionDate =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;MAX ( 'Date'[Date] ),&lt;BR /&gt;FILTER (&lt;BR /&gt;ALL ( Project ),&lt;BR /&gt;Project[ProjectName] = CurrentProject&lt;BR /&gt;&amp;amp;&amp;amp; MAXX ( RELATEDTABLE ( 'Date of Inspection' ), 'Date of Inspection'[date] ) &amp;lt; CurrentDate&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;LastInspectionDate = BLANK (),&lt;BR /&gt;BLANK (),&lt;BR /&gt;INT ( CurrentDate - LastInspectionDate )&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 16:30:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3093464#M108453</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-22T16:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3093483#M108456</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you both for your help. The DAX now has no errors, but it is returning the value for each row as -45658.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 16:36:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3093483#M108456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-22T16:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3093762#M108475</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How does your data model look like?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 18:26:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3093762#M108475</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-22T18:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3093920#M108488</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;What would you like to see to best aid you? Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 20:24:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3093920#M108488</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-22T20:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3094354#M108506</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When a formula refers to multiple columns from multiple tables then I need to see the relationships of the model and the filter context of the visual.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 02:19:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3094354#M108506</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-23T02:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3095028#M108556</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I hope this helps - screenshoot shows most/all relevant tables.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Notes on most relevant connections:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;'Project'[PPProjectID] - 'HSE Inspection'[ProjectID]&lt;/LI&gt;&lt;LI&gt;'Project'[BusinessUnitID] - 'Business Unit'[BusinessUnitID]&lt;/LI&gt;&lt;LI&gt;'Project'[ProjectPlusCompletionDateInteger] - 'Date of Completion'[DateAsInteger]&lt;/LI&gt;&lt;LI&gt;'Project'[ProjectStatusID] - 'Project Status'[ProjectStatusID]&lt;/LI&gt;&lt;LI&gt;'HSE Inspection'[DateHSEInspectionCreatedOnInteger] - 'Date of Inspection'[DateAsInteger]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Filters on visual:&lt;BR /&gt;BusinessUnit is not (blank) or Fitout.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ProjectName does not contain 'Test '.&lt;/P&gt;&lt;P&gt;ProjectStatusName is Live. (Or ProjectStatusID is 2).&lt;/P&gt;&lt;P&gt;InspectionTypeName is Formal Inspection (not (blank) or Site Inspection).&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 09:56:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3095028#M108556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-23T09:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3095426#M108588</link>
      <description>&lt;P&gt;Sorry&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;I just noticed your reply.&lt;/P&gt;
&lt;P&gt;I don't see the 'Date' table in the screenshot. However, please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;DaysBetweenInspectionsALL =
VAR CurrentDate =
    MAX ( 'Date'[date] )
RETURN
    MAXX (
        FILTER (
            CALCULATETABLE (
                SUMMARIZE ( 'HSE Inspection', Project[ProjectName], 'Date of Inspection'[date] ),
                ALLEXCEPT ( 'HSE Inspection', Project[ProjectName] )
            ),
            'Date of Inspection'[date] &amp;lt;= CurrentDate
        ),
        'Date of Inspection'[date]
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 13:14:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3095426#M108588</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-23T13:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3095582#M108611</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Not a problem at all, thanks for your continued help.&lt;/P&gt;&lt;P&gt;My 'Date' table has no connections.&amp;nbsp;&lt;/P&gt;&lt;P&gt;All rows are showing as '22/02/2023'&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 14:24:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3095582#M108611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-23T14:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3095683#M108615</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Even for different project names?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 15:04:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3095683#M108615</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-23T15:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3095854#M108634</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Just for the new measure. This is before:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If I add 'Date of Inspection'[Date], the [date] column has dates going up each row by a day from 01/01/2000 to 31/12/2029. If I remove the [date] column, DaysBetweenInspectionsALL becomes the latest inspection dates!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 16:12:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3095854#M108634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-23T16:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3095867#M108636</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which calculated column? This is supposed to be a measure!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 15:56:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3095867#M108636</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-23T15:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3095928#M108639</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Apologies, I mean the measure!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 16:11:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3095928#M108639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-23T16:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3095977#M108642</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me get that straight. You're not trying to get the latest inspection date of the project but only want to filter the project related rows based on the selection of the disconnected date table by keeping the rows with related inspection date before the selected 'Date'[Date]&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 16:29:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3095977#M108642</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-23T16:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3096021#M108644</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I apologise for not being clear/causing any confusion. The 'Date' table is not of great importance and I do not have a slicer for this either.&lt;/P&gt;&lt;P&gt;I am simply trying to get the difference in days between each inspection date for all projects. I eventually want to get the average days between inspections based on the project, which I believe will be categorised later on in a different DAX by getting the averages of days between inspections by project.&lt;/P&gt;&lt;P&gt;But ideally if possible, I would just like a DAX for the average days between inspections by project in one go!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 16:44:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3096021#M108644</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-23T16:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3096091#M108647</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;AverageDaysBetweenInspections =
AVERAGEX (
    SUMMARIZE ( 'HSE Inspection', Project[ProjectName], 'Date of Inspection'[date] ),
    VAR CurrentDate = 'Date of Inspection'[date]
    VAR CurrentProjectTable =
        CALCULATETABLE (
            SUMMARIZE ( 'HSE Inspection', Project[ProjectName], 'Date of Inspection'[date] ),
            ALL ( 'Date of Inspection'[date] )
        )
    VAR TableBefore =
        FILTER ( CurrentProjectTable, 'Date of Inspection'[date] &amp;lt; CurrentDate )
    VAR PreviousDate =
        MAXX ( TableBefore, 'Date of Inspection'[date] )
    RETURN
        IF ( NOT ISEMPTY ( TableBefore ), INT ( CurrentDate - PreviousDate ) )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Feb 2023 17:09:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3096091#M108647</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-23T17:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Average Days Between Inspections</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3098291#M108802</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;It worked!! Amazing. Thank you so much for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 14:55:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Days-Between-Inspections/m-p/3098291#M108802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-24T14:55:42Z</dc:date>
    </item>
  </channel>
</rss>

