<?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: weighted average  for a month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/weighted-average-for-a-month/m-p/2594128#M74820</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192401" data-lia-user-login="v-easonf-msft" class="lia-mention lia-mention-user"&gt;v-easonf-msft&lt;/a&gt;&amp;nbsp;here you are&amp;nbsp;&lt;A href="https://we.tl/t-EBzowOPj3q" target="_blank"&gt;https://we.tl/t-EBzowOPj3q&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2022 07:44:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-06-22T07:44:17Z</dc:date>
    <item>
      <title>weighted average  for a month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/weighted-average-for-a-month/m-p/2579694#M73985</link>
      <description>&lt;P&gt;Hi guys, I have a problem with my measure,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to do a progressive calculation. That is to say I have three columns, one with the number of session, one with the average time per session and another with the cumulative number of session each month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Starting from a date, I would like to calculate a&amp;nbsp;weighted average on a month period. For each day from the date I started to the last month, i want to divide the number of sessions of each day by the cumulative number of session each month equal to the DAY I STARTED. The total multiplied by the average time per session.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DIVIDE(
	CALCULATE (
	    SUM ( 'Google analytics'[Number of sessions] )
	        * SUM ( 'Google analytics'[Average time per session] ),
	    DATESINPERIOD (
	        'Google analytics'[Date].[Date],
	        FIRSTDATE ( 'Google analytics'[Date] ),
	        -1,
	        MONTH
	    )
	),
	 SUM ( 'Google analytics'[Cumulative number of session each month] )
)&lt;/LI-CODE&gt;&lt;P&gt;To give you an exemple I am giving you this excel:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want to calculate the session time weighed average for the DAY 6, so i have to sum all the session time weighed average of all other days. To calcul them, i am using the last cumulative number of sessions.&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;I hope you can help me, tell me if i'm not clear enough.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 09:03:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/weighted-average-for-a-month/m-p/2579694#M73985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-15T09:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: weighted average  for a month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/weighted-average-for-a-month/m-p/2579700#M73986</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377293" data-lia-user-login="SpartaBI" class="lia-mention lia-mention-user"&gt;SpartaBI&lt;/a&gt;&amp;nbsp;Perhaps you can help me for this thing.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 09:04:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/weighted-average-for-a-month/m-p/2579700#M73986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-15T09:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: weighted average  for a month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/weighted-average-for-a-month/m-p/2588774#M74517</link>
      <description>&lt;P&gt;Hi，&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is necessary to first judge whether the results returned by the numerator and denominator are correct.&lt;/P&gt;
&lt;P&gt;Can you share a sample file&amp;nbsp;for further investigation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 08:43:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/weighted-average-for-a-month/m-p/2588774#M74517</guid>
      <dc:creator>v-easonf-msft</dc:creator>
      <dc:date>2022-06-20T08:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: weighted average  for a month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/weighted-average-for-a-month/m-p/2594128#M74820</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192401" data-lia-user-login="v-easonf-msft" class="lia-mention lia-mention-user"&gt;v-easonf-msft&lt;/a&gt;&amp;nbsp;here you are&amp;nbsp;&lt;A href="https://we.tl/t-EBzowOPj3q" target="_blank"&gt;https://we.tl/t-EBzowOPj3q&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 07:44:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/weighted-average-for-a-month/m-p/2594128#M74820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-22T07:44:17Z</dc:date>
    </item>
  </channel>
</rss>

