<?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: Calculate the total average days in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-total-average-days/m-p/3188709#M115575</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;P&gt;Conversation Date (days/ID) =&lt;BR /&gt;AVERAGEX (&lt;BR /&gt;VALUES ( 'Main Table'[Main Table ID] ),&lt;BR /&gt;CALCULATE (&lt;BR /&gt;DATEDIFF ( MIN ( Table1[StartDate] ), MIN ( Table2[StartDate] ), DAY )&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Fri, 14 Apr 2023 13:49:56 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-04-14T13:49:56Z</dc:date>
    <item>
      <title>Calculate the total average days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-total-average-days/m-p/3188682#M115567</link>
      <description>&lt;P&gt;Hello community!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am stumped. So I am trying to do a "conversion" rate based on a start date from one table and a start date from another table. These two tables do not have a direct relationship, however, they are both connected to a main table through an ID. The main table includes the slicer # and the main table ID #. I am using a DAX where I pull the minimum date value based on the start date of each table, then I am using a datediff between those two minimum values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I need is for the sum of those conversion days for all of the main table #s and then I will divide that number by the count of main table IDs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an example. Instead of it showing -254 I need it to total eveything in that table in order for me to divide it by the count. Hopefully this wasn't too confusing, Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 13:35:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-total-average-days/m-p/3188682#M115567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-14T13:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the total average days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-total-average-days/m-p/3188709#M115575</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;P&gt;Conversation Date (days/ID) =&lt;BR /&gt;AVERAGEX (&lt;BR /&gt;VALUES ( 'Main Table'[Main Table ID] ),&lt;BR /&gt;CALCULATE (&lt;BR /&gt;DATEDIFF ( MIN ( Table1[StartDate] ), MIN ( Table2[StartDate] ), DAY )&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 13:49:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-total-average-days/m-p/3188709#M115575</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-14T13:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the total average days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-total-average-days/m-p/3188722#M115578</link>
      <description>&lt;P&gt;Wow I was overthinking this, LOL! Works perfectly. Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 13:55:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-total-average-days/m-p/3188722#M115578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-14T13:55:17Z</dc:date>
    </item>
  </channel>
</rss>

