<?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: / 30 (days) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697720#M81490</link>
    <description>&lt;P&gt;Hi SpartaBI,&amp;nbsp;&lt;BR /&gt;I'm very gratefull for your assistance.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This function I currently use:&amp;nbsp;&lt;/P&gt;&lt;P&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 sort of works. It 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 from 2020 not when my Connector was first used in 2021 Q3, and runs to Q4 2022, as per my calendar.&lt;BR /&gt;I just need the function to calculate all the O’s between the 1st use until last usage, e.g. today.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;With this function I am calculating the SDR ID(unique 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 I thought I need to add the coalesce calculation.&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;Please let me know if there's anything else you need to figure this out.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;img /&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;</description>
    <pubDate>Fri, 12 Aug 2022 15:18:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-08-12T15:18:08Z</dc:date>
    <item>
      <title>/ 30 (days)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2694970#M81271</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi All,&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is my current formula (see the top formula below), but it does not work correctly because some days there is no activity so I need to tell PowerBI to include the empty cells as 0.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;SDR ID average per CP ID average per Day = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AVERAGEX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&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;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;&lt;SPAN&gt;I have tried:&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;SDR ID average per CP ID average per Day (0) = &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;AVERAGEX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;( 'Calendar'[Date] ), &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; [SDR ID average per CP ID] + &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;&lt;SPAN&gt;and:&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;SDR ID average per CP ID avgerage per Day(coalesce) = &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;AVERAGEX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Calendar'[Date] ),&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;COALESCE&lt;/SPAN&gt;&lt;SPAN&gt; ( [SDR ID average per CP ID], &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but the results are still not working.&amp;nbsp;&lt;BR /&gt;I would like to try to rewrite the formula but using Month in the callendar and divided by 30)&lt;BR /&gt;That would be close enough, just not sure how to do this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I would appreciate any assistance on this.&amp;nbsp;&lt;BR /&gt;Thank you greatly in advance.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Best,&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;J&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Aug 2022 10:44:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2694970#M81271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-11T10:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: / 30 (days)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2695366#M81305</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WIth regards to myt message earlier. I've tested it and in theory the "+ 0" and the "coalesce" formula work.&lt;BR /&gt;The issue is that I get the average by the Connector, not by the Charger Type.&amp;nbsp;&lt;BR /&gt;I use my formula:&lt;/P&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;SDR ID average per CP ID avgerage per Day(coalesce) =&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;AVERAGEX&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;( 'Calendar'[Date] ),&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COALESCE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;( [SDR ID average per CP ID],&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It works well with my Connectors but it doesn't average the 3 Connectors onto one 'Charger Type'&lt;BR /&gt;See the tables:&lt;BR /&gt;&lt;img /&gt;&lt;P&gt;The charger type should give me 0.59, instead it sums up the three connectors (1.77)&lt;BR /&gt;What can I do?&lt;BR /&gt;Please assist, and thank you in advance.&amp;nbsp;&lt;BR /&gt;Best,&amp;nbsp;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Aug 2022 13:44:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2695366#M81305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-11T13:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: / 30 (days)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697115#M81434</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;hey, can you share a sample file maybe?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 09:45:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697115#M81434</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-08-12T09:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: / 30 (days)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697184#M81439</link>
      <description>&lt;P&gt;Hi SpartaBI,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I think the previous issue is not that relevant now.&amp;nbsp;&lt;BR /&gt;Could you please help me with this function instead?&lt;/P&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;SDR ID average per CP ID avgerage per Day(coalesce) =&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;AVERAGEX&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;( 'Calendar'[Date] ),&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COALESCE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;( [SDR ID average per CP ID],&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;This function calculates the 0 even if the charger type wasn't in the ground then and it calcultes data in Q4 this year.&amp;nbsp;&lt;BR /&gt;How to tell the function to take only data when the charger is actualy active please?&lt;BR /&gt;Thank you,&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;J&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Aug 2022 10:29:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697184#M81439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-12T10:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: / 30 (days)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697214#M81443</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;wrap it with calculate like this:&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;[Your function],&lt;/P&gt;&lt;P&gt;TableName[Charger] = 'Active'&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 10:53:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697214#M81443</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-08-12T10:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: / 30 (days)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697255#M81450</link>
      <description>&lt;P&gt;I'm not that profficient in Dax:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SDR ID average per CP ID avgerage by Date2 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AVERAGEX&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;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Calendar'[Date] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COALESCE&lt;/SPAN&gt;&lt;SPAN&gt; ( [SDR ID average per CP ID], &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[FACT TABLE(Charger Type]) = 'Active'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please rearrange for me. This is obviously wrong. Thank you so much&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Aug 2022 11:21:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697255#M81450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-12T11:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: / 30 (days)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697272#M81452</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;the code is correct, just remove the&amp;nbsp;&lt;STRONG&gt;[&amp;nbsp;&lt;/STRONG&gt;before the FACT.&lt;/P&gt;&lt;P&gt;If you don't get the right result then the question does the original measure works fine for all charger types?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 11:36:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697272#M81452</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-08-12T11:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: / 30 (days)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697277#M81453</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Average Durations = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AVERAGEX&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;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Calendar'[Date] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COALESCE&lt;/SPAN&gt;&lt;SPAN&gt; ( [SDR ID average per CP ID], &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FACT TABLE[Charger Type] = 'Active',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am getting an error: "Too many arguments for AVERAGEX, max is 2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Aug 2022 11:43:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697277#M81453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-12T11:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: / 30 (days)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697293#M81456</link>
      <description>&lt;P&gt;Add another&amp;nbsp;&lt;STRONG&gt;)&amp;nbsp;&lt;/STRONG&gt;after 0 ) so you will have there 0 )),&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 11:52:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697293#M81456</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-08-12T11:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: / 30 (days)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697306#M81457</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Average Durations = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AVERAGEX&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;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Calendar'[Date] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COALESCE&lt;/SPAN&gt;&lt;SPAN&gt; ( [SDR ID average per CP ID], &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; )),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'FACT TABLE'[Charger Type] = 'Active'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;That does look good, the problem is that I am getting an error: 'Cannot find table 'Active'.&amp;nbsp;&lt;BR /&gt;I do not have a table with Active/Non Active column.&amp;nbsp;&lt;BR /&gt;Is there a different way of doing this. My line graph is showing "0" according to the calendar before the item started operating and runs into the future months (I guess as per the calendar).&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Aug 2022 12:01:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697306#M81457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-12T12:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: / 30 (days)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697326#M81458</link>
      <description>&lt;P&gt;Well, that is because you replace blank with 0 in your original measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So forget what we did, it's not related to your issue.&lt;/P&gt;&lt;P&gt;Why did you replace the blank with 0 inside the coalesce? You have blanks inside the range?&lt;/P&gt;&lt;P&gt;Anyway, if you share the file and what you need I could solve this quickly. Will need to continue later, going away from PC, so will ping here later tonight. Until then please try to share the file or a sample of it.&lt;/P&gt;&lt;P&gt;P.S. appreciate your kudos&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 12:10:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697326#M81458</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-08-12T12:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: / 30 (days)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697331#M81459</link>
      <description>&lt;P&gt;Thank you very much, I will share that with you later.&amp;nbsp;&lt;BR /&gt;Best wishes,&amp;nbsp;&lt;BR /&gt;J&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 12:14:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697331#M81459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-12T12:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: / 30 (days)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697720#M81490</link>
      <description>&lt;P&gt;Hi SpartaBI,&amp;nbsp;&lt;BR /&gt;I'm very gratefull for your assistance.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This function I currently use:&amp;nbsp;&lt;/P&gt;&lt;P&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 sort of works. It 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 from 2020 not when my Connector was first used in 2021 Q3, and runs to Q4 2022, as per my calendar.&lt;BR /&gt;I just need the function to calculate all the O’s between the 1st use until last usage, e.g. today.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;With this function I am calculating the SDR ID(unique 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 I thought I need to add the coalesce calculation.&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;Please let me know if there's anything else you need to figure this out.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;img /&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 15:18:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697720#M81490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-12T15:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: / 30 (days)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697909#M81499</link>
      <description>&lt;P&gt;Hey, won't be able today. Tomorrow ping me here and we'll do a quick zoom to look together&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 17:13:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/30-days/m-p/2697909#M81499</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-08-12T17:13:12Z</dc:date>
    </item>
  </channel>
</rss>

