<?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: COUNTING AVERAGE OF THE ACTIVE PERIOD in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700821#M81751</link>
    <description>&lt;P&gt;Hi tamerj1,&amp;nbsp;&lt;BR /&gt;The formula again is not calculating the averages properly.&amp;nbsp;&lt;BR /&gt;Please let me know when you have enough of working on it.&amp;nbsp;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank you for your advise on the Cakendar Table. I will get that sorted.&amp;nbsp;&lt;BR /&gt;Best,&amp;nbsp;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2022 15:36:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-08-15T15:36:01Z</dc:date>
    <item>
      <title>COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700083#M81688</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Average Sessions =&lt;/P&gt;&lt;P&gt;AVERAGEX (&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; VALUES ( 'Calendar'[Date] ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;COALESCE ( [SDR ID average per CP ID], 0 )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the formula that returns the results correctly, averaging the usage data including the days when the unit wasn’t in use, but the issue is that My calendar starts in 2020 so the formula calculates the Averages including 0’s from 2020 not when my ‘Connector’ was first used, and runs to Q4 2022, as per my calendar.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;With this function I am calculating the SDR ID(unique session number) Average per CP ID (unit number) Average, per day;&lt;BR /&gt;Some days the items are not in use, so that’s why the coalesce calculation is needed.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am filtering the above function by the column (FACT TABLE[Connector]).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What can be done, to calculate the average usage, including 0’s within the days since the Connector has started working, not calculating any day before nor after that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Example of my FACT TABLE Data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;BR /&gt;J&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 09:51:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700083#M81688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-15T09:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700121#M81691</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Average Sessions =
VAR FirstDateWithData =
    CALCULATE ( MIN ( TableName[Start Date] ), REMOVEFILTERS () )
VAR Dates =
    FILTER ( VALUES ( 'Calendar'[Date] ), 'Calendar'[Date] &amp;lt;= FirstDateWithData )
RETURN
    AVERAGEX ( Dates, COALESCE ( [SDR ID average per CP ID], 0 ) )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Aug 2022 10:22:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700121#M81691</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-15T10:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700140#M81695</link>
      <description>&lt;P&gt;Hi tamerj1,&lt;BR /&gt;Thank you for that although it didn't work: I have changed the table name within the formula to match my table name:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Average Sessions = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;FirstDateWithData&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'FACT TABLE'&lt;/SPAN&gt;&lt;SPAN&gt;[Start Date]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;REMOVEFILTERS&lt;/SPAN&gt;&lt;SPAN&gt; () )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;Dates&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;FirstDateWithData&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;AVERAGEX&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;Dates&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;COALESCE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;[SDR ID average per CP ID]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; ) )&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;When I include the formula to the visualisation - this is what I see.&amp;nbsp;&lt;BR /&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Aug 2022 10:34:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700140#M81695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-15T10:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700148#M81697</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry my mistake. It is the &amp;lt;= sign that should be &amp;gt;=&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Average Sessions =
VAR FirstDateWithData =
    CALCULATE ( MIN ( TableName[Start Date] ), REMOVEFILTERS () )
VAR Dates =
    FILTER ( VALUES ( 'Calendar'[Date] ), 'Calendar'[Date] &amp;gt;= FirstDateWithData )
RETURN
    AVERAGEX ( Dates, COALESCE ( [SDR ID average per CP ID], 0 ) )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Aug 2022 10:36:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700148#M81697</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-15T10:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700180#M81699</link>
      <description>&lt;P&gt;Hi tamerj1,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very kindly for this, but it didn't change a thing.&amp;nbsp;&lt;BR /&gt;When I visualise this formula it still calculates everything, all the 0's from the beggining of my calendar 2020 including zeros in Q4 2022.&amp;nbsp;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 10:51:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700180#M81699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-15T10:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700196#M81702</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Ok, Let's please try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Average Sessions =
VAR FirstDateWithData =
    CALCULATE ( MIN ( 'FACT TABLE'[End Date] ), REMOVEFILTERS () )
VAR Dates =
    FILTER ( VALUES ( 'Calendar'[Date] ), 'Calendar'[Date] &amp;gt;= FirstDateWithData )
RETURN
    AVERAGEX (
        Dates,
        IF (
            NOT ISBLANK ( 'Calendar'[Date] ),
            COALESCE ( [SDR ID average per CP ID], 0 )
        )
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Aug 2022 10:58:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700196#M81702</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-15T10:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700218#M81703</link>
      <description>&lt;P&gt;Hi tamerj1,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula looks great but I get the exact same result.&lt;BR /&gt;&lt;BR /&gt;Would anything got to to with the fact that we are calculating the average number of SDR ID&amp;nbsp; per average number of CP ID, by when the Connector is in use? See if this information changes anything.&amp;nbsp;&lt;BR /&gt;Ssample of my FACT TABLE:&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thank you so much,&amp;nbsp;&lt;BR /&gt;J&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 11:15:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700218#M81703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-15T11:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700226#M81704</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;What kind of relationship do you have between the two tables? Can you share a screenshot?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 11:19:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700226#M81704</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-15T11:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700238#M81705</link>
      <description>&lt;P&gt;Thank you tamerj1,&lt;BR /&gt;See below. I also have the DIM table, but I am not sure if it's required for our measurement.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 11:24:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700238#M81705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-15T11:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700249#M81708</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Thank you for your patience. Pleae try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Average Sessions =
IF (
    NOT ISEMPTY ( 'FACT TABLE' ),
    AVERAGEX (
        VALUES ( 'Calendar'[Date] ),
        COALESCE ( [SDR ID average per CP ID], 0 )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 11:37:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700249#M81708</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-15T11:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700391#M81717</link>
      <description>&lt;P&gt;Oh my gosh tamerj1 !!!!&lt;BR /&gt;It works!!!!&amp;nbsp; It works!!!!&amp;nbsp;&amp;nbsp;It works!!!!&lt;BR /&gt;Thank you, thank you. Amazing!&amp;nbsp;&lt;BR /&gt;I'm very grateful for your help. Million thanx! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 12:49:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700391#M81717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-15T12:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700595#M81729</link>
      <description>&lt;P&gt;Hi tamerj1,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula definitely solved many issues, for example it solved the line chart, but sadly it doesn't calculates the averages correctly. The Q1 (The item started operating in March, so the function doesn't take the 1st 2 months into account), the same with Q3 - we only had July, but the function seems to be taking the average of all 3 months, whch skews the totals.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm sorry to ask, but if you could take anoter look at this and see if you can figure this out.&amp;nbsp;&lt;BR /&gt;See an example.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 14:00:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700595#M81729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-15T14:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700643#M81734</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Yes That is true. In fact I did not understand your logic or returning zero instead of blank. This how I would do it&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Average Sessions =
AVERAGEX (
    SUMMARIZE (
        'Calendar',
        'Calendar'[Year],
        'Calendar'[Quarter],
        'Calendar'[Month],
        'Calendar'[Date]
    ),
    [SDR ID average per CP ID]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Aug 2022 14:16:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700643#M81734</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-15T14:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700667#M81738</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;tamerj1,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Wow! Hats off to you Sir! Gosh, I've lots to learn.&amp;nbsp;&lt;BR /&gt;Huge thanks, with amazement!&amp;nbsp;&lt;BR /&gt;Thaaaanx! &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 14:30:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700667#M81738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-15T14:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700726#M81744</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi tamerj1,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I thaught it worked but it didn't.&amp;nbsp;&lt;BR /&gt;It is now again not calculating the 0's when the items are not used between days.&amp;nbsp;&lt;BR /&gt;See the tables below.&amp;nbsp;&lt;BR /&gt;The one on the left representing the data with the help of that function, but what I need is t see the total as shown on the right.&amp;nbsp;&lt;BR /&gt;So the function should not calculate years, months days before it became operational, but it should count the 0's in between days.&amp;nbsp;This is why I used the coalesce function earlier.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 15:03:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700726#M81744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-15T15:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700775#M81745</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Ok, let's try mix up both solutions&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Average Sessions =
IF (
    NOT ISEMPTY ( 'FACT TABLE' ),
    AVERAGEX (
        SUMMARIZE (
            'Calendar',
            'Calendar'[Year],
            'Calendar'[Quarter],
            'Calendar'[Month],
            'Calendar'[Date]
        ),
        COALESCE ( [SDR ID average per CP ID], 0 )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;Also I noticed that your calendar table columns require proper sorting. You need to sort text columns using related numeric columns&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 15:19:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700775#M81745</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-15T15:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700821#M81751</link>
      <description>&lt;P&gt;Hi tamerj1,&amp;nbsp;&lt;BR /&gt;The formula again is not calculating the averages properly.&amp;nbsp;&lt;BR /&gt;Please let me know when you have enough of working on it.&amp;nbsp;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank you for your advise on the Cakendar Table. I will get that sorted.&amp;nbsp;&lt;BR /&gt;Best,&amp;nbsp;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 15:36:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700821#M81751</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-15T15:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700855#M81754</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Would you like to connect perhaps with zoom or teams so we may look into it together? I have sometime now if you wish.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 15:48:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700855#M81754</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-15T15:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700864#M81757</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Also Please try this version&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Average Sessions =
AVERAGEX (
    SUMMARIZE (
        'Calendar',
        'Calendar'[Year],
        'Calendar'[Quarter],
        'Calendar'[Month],
        'Calendar'[Date]
    ),
    IF (
        NOT ISEMPTY ( CALCULATETABLE ( 'FACT TABLE' ) ),
        COALESCE ( [SDR ID average per CP ID], 0 )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Aug 2022 15:52:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700864#M81757</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-15T15:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTING AVERAGE OF THE ACTIVE PERIOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700871#M81758</link>
      <description>&lt;P&gt;Yes, please,&amp;nbsp;&lt;BR /&gt;Thank you. Could you please send me your Teams invite?&amp;nbsp;&lt;BR /&gt;J&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 15:56:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTING-AVERAGE-OF-THE-ACTIVE-PERIOD/m-p/2700871#M81758</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-15T15:56:36Z</dc:date>
    </item>
  </channel>
</rss>

