<?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: Getting Item Components Amount Based on Sales in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-Item-Components-Amount-Based-on-Sales/m-p/3336565#M125141</link>
    <description>&lt;P&gt;Thank you! You're a life saviour.&lt;BR /&gt;A silly mistake&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2023 13:26:31 GMT</pubDate>
    <dc:creator>olegkazanskyi</dc:creator>
    <dc:date>2023-07-18T13:26:31Z</dc:date>
    <item>
      <title>Getting Item Components Amount Based on Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-Item-Components-Amount-Based-on-Sales/m-p/3335259#M125068</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a simple data model of pizza sales with three tables:&lt;/P&gt;&lt;P&gt;1. Fact_Sales&lt;/P&gt;&lt;P&gt;2. DIM_Product&lt;/P&gt;&lt;P&gt;3. DIM_Ingridients&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every Pizza has a specific amount of ingredients.&lt;/P&gt;&lt;P&gt;I would like to know how many ingredients I use per month based on sales of pizzas.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sorry, I can't get how to build this calculation.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 21:34:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-Item-Components-Amount-Based-on-Sales/m-p/3335259#M125068</guid>
      <dc:creator>olegkazanskyi</dc:creator>
      <dc:date>2023-07-17T21:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Item Components Amount Based on Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-Item-Components-Amount-Based-on-Sales/m-p/3336092#M125113</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Ingredient Usage =
SUMX (
    'DIM_Ingredients',
    VAR Sales =
        SUMX ( RELATEDTABLE ( 'FACT_Sales' ), 'FACT_Sales'[quantity] )
    VAR Result = Sales * 'DIM_Ingredients'[Usage, KG]
    RETURN
        Result
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Jul 2023 09:30:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-Item-Components-Amount-Based-on-Sales/m-p/3336092#M125113</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-07-18T09:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Item Components Amount Based on Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-Item-Components-Amount-Based-on-Sales/m-p/3336481#M125136</link>
      <description>&lt;P&gt;Unfortunately, I got blank values as a result.&lt;BR /&gt;I'm sharing a dataset just for any case.&lt;BR /&gt;&lt;A title="BOM sample" href="https://drive.google.com/file/d/1mZFi90kHpSuH3lLfVw7aiiKjzI59MaiQ/view?usp=drive_link" target="_self"&gt;Link&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 12:41:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-Item-Components-Amount-Based-on-Sales/m-p/3336481#M125136</guid>
      <dc:creator>olegkazanskyi</dc:creator>
      <dc:date>2023-07-18T12:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Item Components Amount Based on Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-Item-Components-Amount-Based-on-Sales/m-p/3336544#M125139</link>
      <description>&lt;P&gt;The relationship between sales and product is invalid - the keys in the product table include the size whereas the sales table doesn't.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 13:17:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-Item-Components-Amount-Based-on-Sales/m-p/3336544#M125139</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-07-18T13:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Item Components Amount Based on Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-Item-Components-Amount-Based-on-Sales/m-p/3336565#M125141</link>
      <description>&lt;P&gt;Thank you! You're a life saviour.&lt;BR /&gt;A silly mistake&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 13:26:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-Item-Components-Amount-Based-on-Sales/m-p/3336565#M125141</guid>
      <dc:creator>olegkazanskyi</dc:creator>
      <dc:date>2023-07-18T13:26:31Z</dc:date>
    </item>
  </channel>
</rss>

