<?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: Many To Many Relation Issue in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Many-To-Many-Relation-Issue/m-p/4272419#M169474</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="837199" data-lia-user-login="Poojara_D12" class="lia-mention lia-mention-user"&gt;Poojara_D12&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To calculate the P&amp;amp;L, as outlined in your requirements, we need to determine the timing of item sales relative to purchases. Since your sold quantities are lower than your purchase quantities, this results in an inventory balance at the end of the transactions above. There are various methods to value this inventory, including FIFO (First In, First Out), LIFO (Last In, First Out), and moving average. Each of these valuation methods requires a reference to the time dimension.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2024 11:24:01 GMT</pubDate>
    <dc:creator>DataNinja777</dc:creator>
    <dc:date>2024-11-06T11:24:01Z</dc:date>
    <item>
      <title>Many To Many Relation Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Many-To-Many-Relation-Issue/m-p/4270507#M169350</link>
      <description>&lt;P&gt;Hello Members,&lt;/P&gt;&lt;P&gt;I have a scenario where I have a many to many relation issue which I have explained below, can anyone please help me with the solutions for the same?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;As per above screenshot, I have 2 different tables : purchase and selling respetively. I have purchased similar products multiple time at a different purchase price. Both the table has QTY column. The QTY is been taken care of that if I have QTY left with the old purchase, I'll have to sell it first and then the other with HIGHER Purchase Price.&amp;nbsp;&lt;BR /&gt;The question is that if I want to find the selling price dynamically that what will be the way for it. For example, I got a order for 3 Iphone 13,and I'm left with 1 Iphone 13 whose Purchase Price is 150 and other 2 is the new one i.e.160. So How will I figure the P&amp;amp;L in this senario? PLEASE HELP.&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="736379" data-lia-user-login="shafiz_p" class="lia-mention lia-mention-user"&gt;shafiz_p&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="777262" data-lia-user-login="SachinNandanwar" class="lia-mention lia-mention-user"&gt;SachinNandanwar&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 12:35:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Many-To-Many-Relation-Issue/m-p/4270507#M169350</guid>
      <dc:creator>Poojara_D12</dc:creator>
      <dc:date>2024-11-05T12:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Many To Many Relation Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Many-To-Many-Relation-Issue/m-p/4270869#M169373</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="837199" data-lia-user-login="Poojara_D12" class="lia-mention lia-mention-user"&gt;Poojara_D12&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would start by creating a dimension table for the product (iPhone) and establishing a one-to-many relationship with your purchase and sales fact tables, rather than using a many-to-many relationship between two fact tables &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;.&lt;/P&gt;
&lt;P&gt;Next, I’d like to confirm whether you have separate columns for purchase date and sales date. Your P&amp;amp;L will recognize the cost of goods sold (COGS) at the point of revenue recognition (when sales are made), as inventory (assets) remain on the balance sheet until sales are made.&lt;/P&gt;
&lt;P&gt;Please let us know if there is a separate date field for the sales and purchase fact tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 14:38:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Many-To-Many-Relation-Issue/m-p/4270869#M169373</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2024-11-05T14:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Many To Many Relation Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Many-To-Many-Relation-Issue/m-p/4271775#M169441</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608865" data-lia-user-login="DataNinja777" class="lia-mention lia-mention-user"&gt;DataNinja777&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;There is no seperate date field for the sales and purchase given from client, also there is no Lot Number column in sales or purchase table as well.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 04:33:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Many-To-Many-Relation-Issue/m-p/4271775#M169441</guid>
      <dc:creator>Poojara_D12</dc:creator>
      <dc:date>2024-11-06T04:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Many To Many Relation Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Many-To-Many-Relation-Issue/m-p/4272419#M169474</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="837199" data-lia-user-login="Poojara_D12" class="lia-mention lia-mention-user"&gt;Poojara_D12&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To calculate the P&amp;amp;L, as outlined in your requirements, we need to determine the timing of item sales relative to purchases. Since your sold quantities are lower than your purchase quantities, this results in an inventory balance at the end of the transactions above. There are various methods to value this inventory, including FIFO (First In, First Out), LIFO (Last In, First Out), and moving average. Each of these valuation methods requires a reference to the time dimension.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 11:24:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Many-To-Many-Relation-Issue/m-p/4272419#M169474</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2024-11-06T11:24:01Z</dc:date>
    </item>
  </channel>
</rss>

