<?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: Average Selling Price in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2760517#M85540</link>
    <description>&lt;P&gt;Hi, try this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a Calculated Table:&lt;/P&gt;&lt;P&gt;Summarize ( TEST ; "Month Column" ; Month(TEST[Billing Date]);"Product Column" ; TEST[Short Description]; "Earnings" ; SUM(TEST[Value w/o tax]) ; "Quantity item per Month " ; SUM(TEST[Billed Quantity]);"Average per Month" ; [Earnings]/[Quantity item per Month])&lt;/P&gt;</description>
    <pubDate>Sun, 11 Sep 2022 20:32:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-11T20:32:48Z</dc:date>
    <item>
      <title>Average Selling Price</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2760501#M85538</link>
      <description>&lt;P&gt;Hello all, i need to calculate the avrage selling price for multiple items, so the scenario as below&lt;/P&gt;&lt;P&gt;i have around 5 items, i need to get the fourmila as below&lt;/P&gt;&lt;P&gt;sum of net value for each item/sum of item quantites from the same item&lt;/P&gt;&lt;P&gt;all of that to be done on monthely basis so is there any tips and tricks help me in this request ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2022 20:03:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2760501#M85538</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-11T20:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Average Selling Price</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2760505#M85539</link>
      <description>&lt;P&gt;Data Example For Refrence&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;</description>
      <pubDate>Sun, 11 Sep 2022 20:06:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2760505#M85539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-11T20:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Average Selling Price</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2760517#M85540</link>
      <description>&lt;P&gt;Hi, try this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a Calculated Table:&lt;/P&gt;&lt;P&gt;Summarize ( TEST ; "Month Column" ; Month(TEST[Billing Date]);"Product Column" ; TEST[Short Description]; "Earnings" ; SUM(TEST[Value w/o tax]) ; "Quantity item per Month " ; SUM(TEST[Billed Quantity]);"Average per Month" ; [Earnings]/[Quantity item per Month])&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2022 20:32:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2760517#M85540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-11T20:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Average Selling Price</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2761107#M85592</link>
      <description>&lt;P&gt;tried alot, but i think its not working fine with me, tried the same fourmila but its not working i do the summrize for both billing date and materials its coming correct but the summition of the values it not coming&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table = SUMMARIZE(TEST, "Month Column", Month(TEST[Billing Date].[Month], "Product Column", TEST[Short Description], "Earnings", (SUM(TEST[Value w/o tax])), "Quantity item per Month ", (SUM(TEST[Billed Quantity])), "Average per Month", [Earnings]/[Quantity item per Month])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i used the above one, but also there is no result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the error which i recived&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and if i use the same code excatly&amp;nbsp;&lt;/P&gt;&lt;P&gt;i got this one&amp;nbsp;&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;</description>
      <pubDate>Mon, 12 Sep 2022 07:25:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2761107#M85592</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-12T07:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Average Selling Price</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2763513#M85723</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, You want to generate a table, grouped by month and item, and calculate the total profit, total, and average for each item. Right?&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;(1)This is my test data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(2) We can click "New Column" in the original table to create a year and month column:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Month = YEAR('Sheet4'[Billing Date])*100 &amp;amp; MONTH('Sheet4'[Billing Date])&lt;/LI-CODE&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;(3)We can click “New Table” and enter :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table =
ADDCOLUMNS (
    SUMMARIZE (
        'Sheet4',
        'Sheet4'[Month],
        'Sheet4'[Short Description],
        "Sum of w/o tax", SUM ( 'Sheet4'[Value w/o tax] ),
        "Sum of quatity", SUM ( 'Sheet4'[Billed Quantity] )
    ),
    "Average per Month", DIVIDE ( [Sum of w/o tax], [Sum of quatity] )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(3)Then we can meet your need ,the result is as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this method does not meet your needs, you can provide us with your special &lt;STRONG&gt;sample data&lt;/STRONG&gt; and the &lt;STRONG&gt;desired output sample&lt;/STRONG&gt; data in the form of &lt;STRONG&gt;tables&lt;/STRONG&gt;, so that we can better help you solve the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 07:26:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2763513#M85723</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2022-09-13T07:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Average Selling Price</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2768512#M86078</link>
      <description>&lt;P&gt;Do you still trying?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 00:28:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2768512#M86078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-15T00:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Average Selling Price</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2768521#M86080</link>
      <description>&lt;P&gt;in your second try use commas instead semi colon&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 00:48:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2768521#M86080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-15T00:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Average Selling Price</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2769963#M86192</link>
      <description>&lt;P&gt;Thnx Very Much i tried and its working fine&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 09:48:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2769963#M86192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-15T09:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Average Selling Price</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2769966#M86193</link>
      <description>&lt;P&gt;yes already tried with changing some fourmilas and its fixed, lof of thanx for your support&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 09:49:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Selling-Price/m-p/2769966#M86193</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-15T09:49:41Z</dc:date>
    </item>
  </channel>
</rss>

