<?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: Creating a DAX Measure to Combine Volume Data and ASP for Product Sales Report with Aggregation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-DAX-Measure-to-Combine-Volume-Data-and-ASP-for/m-p/4834965#M184670</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="338510" data-lia-user-login="apohl1" class="lia-mention lia-mention-user"&gt;apohl1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Have you had a chance to review the solution we shared earlier? If the issue persists, feel free to reply so we can help further&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Sep 2025 07:00:25 GMT</pubDate>
    <dc:creator>v-saisrao-msft</dc:creator>
    <dc:date>2025-09-25T07:00:25Z</dc:date>
    <item>
      <title>Creating a DAX Measure to Combine Volume Data and ASP for Product Sales Report with Aggregation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-DAX-Measure-to-Combine-Volume-Data-and-ASP-for/m-p/4830519#M184522</link>
      <description>&lt;P class=""&gt;I need assistance in creating a DAX measure that combines volume data by product code (stored in Dataset 1) with the Average Selling Price (ASP) (stored in Dataset 2). The product codes in Dataset 2 are linked to Dataset 1 via a separate table (Dataset 3), which contains the equivalent product codes and has a direct relationship with Dataset 2.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;The goal is to generate a report that displays sales based on volume from Dataset 1 and ASP from Dataset 2. The DAX measure should calculate sales per product code, and it should also be capable of aggregating these individual sales figures to provide a total sales amount across all product codes.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thank you in advance for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 10:16:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-DAX-Measure-to-Combine-Volume-Data-and-ASP-for/m-p/4830519#M184522</guid>
      <dc:creator>apohl1</dc:creator>
      <dc:date>2025-09-19T10:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a DAX Measure to Combine Volume Data and ASP for Product Sales Report with Aggregation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-DAX-Measure-to-Combine-Volume-Data-and-ASP-for/m-p/4830626#M184523</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="338510" data-lia-user-login="apohl1" class="lia-mention lia-mention-user"&gt;apohl1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I’ve recreated the issue using sample data and configured the model with Volume, ASP, and a Mapping table. After setting up the relationships and creating the DAX measure, I obtained the expected output. I’ve attached the PBIX file for your reference.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Sales = 
SUMX (
    'Volume Data',
    'Volume Data'[Volume] *
        LOOKUPVALUE (
            'ASP Data'[ASP],
            'ASP Data'[ProductCode2],
            RELATED ( 'Mapping Table'[ProductCode2] )
        )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 11:59:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-DAX-Measure-to-Combine-Volume-Data-and-ASP-for/m-p/4830626#M184523</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-09-19T11:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a DAX Measure to Combine Volume Data and ASP for Product Sales Report with Aggregation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-DAX-Measure-to-Combine-Volume-Data-and-ASP-for/m-p/4830668#M184525</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you! Unfortunately, I should have clarified that each product code has multiple rows, so the LOOKUPVALUE function doesn't work in this context. I tried the DAX below, but it's not summing the total correctly and it's not very efficient in terms of performance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Sales =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX&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;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&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;'Dataset1'&lt;/SPAN&gt;&lt;SPAN&gt;,&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;'Dataset1'&lt;/SPAN&gt;&lt;SPAN&gt;[Product code]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt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lt;SPAN&gt;[ASP]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;RELATEDTABLE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Dataset3'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Dataset3'&lt;/SPAN&gt;&lt;SPAN&gt;[Product code]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;ProductCode&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;RETURN&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;Volume&lt;/SPAN&gt;&lt;SPAN&gt; * &lt;/SPAN&gt;&lt;SPAN&gt;ASP&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Sep 2025 13:08:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-DAX-Measure-to-Combine-Volume-Data-and-ASP-for/m-p/4830668#M184525</guid>
      <dc:creator>apohl1</dc:creator>
      <dc:date>2025-09-19T13:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a DAX Measure to Combine Volume Data and ASP for Product Sales Report with Aggregation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-DAX-Measure-to-Combine-Volume-Data-and-ASP-for/m-p/4831742#M184555</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="338510" data-lia-user-login="apohl1" class="lia-mention lia-mention-user"&gt;apohl1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please try the DAX measure below. I received the following output.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Sales =
SUMX (
    VALUES ( 'Volume Data'[ProductCode] ),
    VAR Volume =
        CALCULATE ( SUM ( 'Volume Data'[Volume] ) )
    VAR ASP =
        CALCULATE (
            AVERAGE ( 'ASP Data'[ASP] ),
            TREATAS ( VALUES ( 'Volume Data'[ProductCode] ), 'Mapping Table'[ProductCode] )
        )
    RETURN
        Volume * ASP
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 05:17:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-DAX-Measure-to-Combine-Volume-Data-and-ASP-for/m-p/4831742#M184555</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-09-22T05:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a DAX Measure to Combine Volume Data and ASP for Product Sales Report with Aggregation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-DAX-Measure-to-Combine-Volume-Data-and-ASP-for/m-p/4834965#M184670</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="338510" data-lia-user-login="apohl1" class="lia-mention lia-mention-user"&gt;apohl1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Have you had a chance to review the solution we shared earlier? If the issue persists, feel free to reply so we can help further&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 07:00:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-DAX-Measure-to-Combine-Volume-Data-and-ASP-for/m-p/4834965#M184670</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-09-25T07:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a DAX Measure to Combine Volume Data and ASP for Product Sales Report with Aggregation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-DAX-Measure-to-Combine-Volume-Data-and-ASP-for/m-p/4837359#M184742</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="338510" data-lia-user-login="apohl1" class="lia-mention lia-mention-user"&gt;apohl1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Checking in to see if your issue has been resolved. let us know if you still need any assistance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 04:40:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-DAX-Measure-to-Combine-Volume-Data-and-ASP-for/m-p/4837359#M184742</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-09-29T04:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a DAX Measure to Combine Volume Data and ASP for Product Sales Report with Aggregation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-DAX-Measure-to-Combine-Volume-Data-and-ASP-for/m-p/4838776#M184787</link>
      <description>&lt;P&gt;This worked! Thank you so much!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 07:58:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-DAX-Measure-to-Combine-Volume-Data-and-ASP-for/m-p/4838776#M184787</guid>
      <dc:creator>apohl1</dc:creator>
      <dc:date>2025-09-30T07:58:53Z</dc:date>
    </item>
  </channel>
</rss>

