<?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: Please help to solve the measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-help-to-solve-the-measure/m-p/1901455#M41007</link>
    <description>&lt;P&gt;Ohh Really Sorry.....&amp;nbsp; &amp;nbsp;var Sales Qty= If the (SalesQty[Product Code]=Return Transfer Product[Transfer Product Code]) and&amp;nbsp;(SalesQty[Country]=Return Transfer Product[Country]) {&lt;/P&gt;&lt;P&gt;return sum of SalesQty[Qty] where SalesQty[Type] is "Sale"&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;var Return Qty=&lt;/P&gt;&lt;P&gt;If the (SalesQty[Product Code]=Return Transfer Product[Product Code]) and&amp;nbsp;(SalesQty[Country]=Return Transfer Product[Country]) {&lt;/P&gt;&lt;P&gt;return sum of SalesQty[Qty] where SalesQty[Type] is "Return"&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;var final result=Return Qty-Sales Qty&lt;BR /&gt;&lt;BR /&gt;Eg : If the Product Code is 25 (Total ReturnQty is 30) and If the Transfer Product Code is 116 (Total SaleQty is 20)&amp;nbsp; on the date (06-05-2021)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Need to Show the result in same Line&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Product Code&lt;/TD&gt;&lt;TD&gt;ReturnQty&lt;/TD&gt;&lt;TD&gt;SaleQty&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;final result&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Tue, 15 Jun 2021 13:06:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-06-15T13:06:40Z</dc:date>
    <item>
      <title>Please help to solve the measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-help-to-solve-the-measure/m-p/1896821#M40882</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a three tables like Product Master,Sales QTY,Return Transfer Product&lt;BR /&gt;Product Master&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;Sales QTY&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;Return Transfer Product&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;I am trying to achieve is find the total Return as per the sales qty in measure .Using the condition like If the Transfer Product Code in Sale Qty [ProductCode]&amp;nbsp; and Transfer Product[Country] in Sale Qty [Country] alone need to find the Sales Qty then i need to find the Total Return QTY - Sale QTY for the particular condition mention before&lt;BR /&gt;Eg :&lt;BR /&gt;If the ProductCode is 25 and Country is US (Return is 30 Qty&amp;nbsp; Date :06-05-2021)&amp;nbsp; and&amp;nbsp; Transfer Product Code is 116 and County is US (Sale is 20 Qty Date :06-05-2021)&lt;BR /&gt;I am trying this measure to achieve it&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Rotation_return_qty =&lt;BR /&gt;var _return=CALCULATE(sum('Sale Qty'[QTY]),'Sale Qty'[Type]="Return",'Sale Qty'[Product Code] in VALUES('Return Transfer Product'[ProductCode]) &amp;amp;&amp;amp; 'Sale Qty'[Country] in VALUES('Return Transfer Product'[Country]))&lt;BR /&gt;var _saleqty=CALCULATE(sum('Sale Qty'[QTY]),'Sale Qty'[Type]="Sale",'Sale Qty'[Product Code] in VALUES('Return Transfer Product'[Transfer Product Code]) &amp;amp;&amp;amp; 'Sale Qty'[Country] in VALUES('Return Transfer Product'[Country]))&lt;BR /&gt;return (_return-_saleqty)&lt;BR /&gt;&lt;BR /&gt;I got the result but acturally&lt;BR /&gt;if the product code is 25 (Return : 30 Qty) and Transfer Product is 116(Sale : 20 QTY) i need to substract the value in same line ...&lt;BR /&gt;i connected Product master[Product Code] to Sale Qty[Product Code] as Relationship..Pls kindly help me to solve this issue...Thanks in advance&lt;/P&gt;&lt;P&gt;Eg :&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Product Code&lt;/TD&gt;&lt;TD&gt;Return&lt;/TD&gt;&lt;TD&gt;Rotation Return&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2021 03:24:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-help-to-solve-the-measure/m-p/1896821#M40882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-12T03:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to solve the measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-help-to-solve-the-measure/m-p/1901361#M41003</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry, but the description is very unclear (this is why you haven't received any answers yet). If you do want to get answers, you have to phrase the problem in a much clearer, understandable way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A good place to learn about how to pose questions is here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-to-Get-Your-Question-Answered-Quickly/td-p/1626726" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-to-Get-Your-Question-Answered-Quickly/td-p/1626726&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 12:26:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-help-to-solve-the-measure/m-p/1901361#M41003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-15T12:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Please help to solve the measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-help-to-solve-the-measure/m-p/1901455#M41007</link>
      <description>&lt;P&gt;Ohh Really Sorry.....&amp;nbsp; &amp;nbsp;var Sales Qty= If the (SalesQty[Product Code]=Return Transfer Product[Transfer Product Code]) and&amp;nbsp;(SalesQty[Country]=Return Transfer Product[Country]) {&lt;/P&gt;&lt;P&gt;return sum of SalesQty[Qty] where SalesQty[Type] is "Sale"&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;var Return Qty=&lt;/P&gt;&lt;P&gt;If the (SalesQty[Product Code]=Return Transfer Product[Product Code]) and&amp;nbsp;(SalesQty[Country]=Return Transfer Product[Country]) {&lt;/P&gt;&lt;P&gt;return sum of SalesQty[Qty] where SalesQty[Type] is "Return"&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;var final result=Return Qty-Sales Qty&lt;BR /&gt;&lt;BR /&gt;Eg : If the Product Code is 25 (Total ReturnQty is 30) and If the Transfer Product Code is 116 (Total SaleQty is 20)&amp;nbsp; on the date (06-05-2021)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Need to Show the result in same Line&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Product Code&lt;/TD&gt;&lt;TD&gt;ReturnQty&lt;/TD&gt;&lt;TD&gt;SaleQty&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;final result&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 15 Jun 2021 13:06:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-help-to-solve-the-measure/m-p/1901455#M41007</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-15T13:06:40Z</dc:date>
    </item>
  </channel>
</rss>

