<?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: Days between two dates average for a customer orders. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Days-between-two-dates-average-for-a-customer-orders/m-p/2578053#M73881</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;That works but seems to give me the avg lag time of all orders vs giving me the average for the values in the row.&lt;/P&gt;&lt;P&gt;Customer&amp;nbsp; &amp;nbsp;Orders&amp;nbsp; Avg Lag time&lt;/P&gt;&lt;P&gt;Smith&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;39.4&lt;/P&gt;&lt;P&gt;Johnson&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 39.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Customer and Order are in the same table the two dates i'm averaging are in a different table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel like the results for avg&amp;nbsp; are not taking into account the data from the other two columns.&lt;/P&gt;&lt;P&gt;Thanks Again, Ill keep trying&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 15:21:52 GMT</pubDate>
    <dc:creator>Sagimore88</dc:creator>
    <dc:date>2022-06-14T15:21:52Z</dc:date>
    <item>
      <title>Days between two dates average for a customer orders.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Days-between-two-dates-average-for-a-customer-orders/m-p/2569780#M73334</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Sorry very new to this and trying to help migrate(recreate ssrs reports to PowerBI) - All data is pulled in from the SQL server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a [Customer Name] column and a measure with the total number of orders for each customer.&lt;/P&gt;&lt;P&gt;The table contains two date columns - [Recieved Date] and [Effective Date]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to create a measure that simply shows the avg days between the Rec Date and Eff Date across all the customers orders and call it Avg. Lag Time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Customer Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Total Orders&amp;nbsp; &amp;nbsp; &amp;nbsp;Avg Lag Time&lt;/P&gt;&lt;P&gt;Smith &amp;amp; Smith&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help. I have search the forums but am finding similiar request that are doing more than I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 17:02:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Days-between-two-dates-average-for-a-customer-orders/m-p/2569780#M73334</guid>
      <dc:creator>Sagimore88</dc:creator>
      <dc:date>2022-06-09T17:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates average for a customer orders.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Days-between-two-dates-average-for-a-customer-orders/m-p/2569803#M73337</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="247815" data-lia-user-login="Sagimore88" class="lia-mention lia-mention-user"&gt;Sagimore88&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Avg Lag Time =
AVERAGEX (
    TableName,
    DATEDIFF ( TableName[Recieved Date], TableName[Effective Date], DAY )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 09 Jun 2022 17:25:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Days-between-two-dates-average-for-a-customer-orders/m-p/2569803#M73337</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-09T17:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates average for a customer orders.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Days-between-two-dates-average-for-a-customer-orders/m-p/2578053#M73881</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;That works but seems to give me the avg lag time of all orders vs giving me the average for the values in the row.&lt;/P&gt;&lt;P&gt;Customer&amp;nbsp; &amp;nbsp;Orders&amp;nbsp; Avg Lag time&lt;/P&gt;&lt;P&gt;Smith&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;39.4&lt;/P&gt;&lt;P&gt;Johnson&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 39.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Customer and Order are in the same table the two dates i'm averaging are in a different table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel like the results for avg&amp;nbsp; are not taking into account the data from the other two columns.&lt;/P&gt;&lt;P&gt;Thanks Again, Ill keep trying&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 15:21:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Days-between-two-dates-average-for-a-customer-orders/m-p/2578053#M73881</guid>
      <dc:creator>Sagimore88</dc:creator>
      <dc:date>2022-06-14T15:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates average for a customer orders.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Days-between-two-dates-average-for-a-customer-orders/m-p/2578067#M73884</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="247815" data-lia-user-login="Sagimore88" class="lia-mention lia-mention-user"&gt;Sagimore88&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are the relationships between thses tables? Can you share a screenshot of your data model?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 15:31:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Days-between-two-dates-average-for-a-customer-orders/m-p/2578067#M73884</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-14T15:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Days between two dates average for a customer orders.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Days-between-two-dates-average-for-a-customer-orders/m-p/2580892#M74046</link>
      <description>&lt;P&gt;Thanks that question made me look- I had to change the cross filter on the tables in modeling to 'Both' -&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 16:22:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Days-between-two-dates-average-for-a-customer-orders/m-p/2580892#M74046</guid>
      <dc:creator>Sagimore88</dc:creator>
      <dc:date>2022-06-15T16:22:51Z</dc:date>
    </item>
  </channel>
</rss>

