<?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 ACTUAL vs TARGET in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ACTUAL-vs-TARGET/m-p/2427889#M64546</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I need to compare actual sales&amp;nbsp; vs target and when target is achieved I need to be able to write "[Target Name] Achieved"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my model:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;DIMS contains my items per year and per group (REQUESTED_ITEM_KEY is unique for a year and a group)&lt;/P&gt;&lt;P&gt;In Sales, I keep track of each sale action (quantity not needed righ now, assume it to be 1)&lt;/P&gt;&lt;P&gt;And a sale action has a status OK/NOK&lt;/P&gt;&lt;P&gt;A target is identified by a Target Label (that is the concatenantion of the ID, GROUP, and YEAR)&lt;/P&gt;&lt;P&gt;A target definition concerns several Items (several REQUESTED_ITEM_KEY) and for each item I can specify the requested quantity for the target to be achieved; only if all the lines concerning a Target are achieved, the target is achieved too&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When checking for target compliance, I only need to take from Sales, those lines for which the status is "OK"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The DIMS table has been built by extracting all the REQUESTED_ITEMS available in the other two table, by GROUP and YEAR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to :&lt;/P&gt;&lt;P&gt;Count for a TARGET Label, and a REQUESTED ITEM, the corresponding lines in SALES for which the Sales Rep have a Status="OK"&lt;/P&gt;&lt;P&gt;But When I compare this value with the REQUESTED QUANTITY I get a CIRCULAR DEPENDENCY&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;At the end I would like to build a matrix as the one below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2022 20:26:42 GMT</pubDate>
    <dc:creator>thebruuu</dc:creator>
    <dc:date>2022-03-30T20:26:42Z</dc:date>
    <item>
      <title>ACTUAL vs TARGET</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ACTUAL-vs-TARGET/m-p/2427889#M64546</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I need to compare actual sales&amp;nbsp; vs target and when target is achieved I need to be able to write "[Target Name] Achieved"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my model:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;DIMS contains my items per year and per group (REQUESTED_ITEM_KEY is unique for a year and a group)&lt;/P&gt;&lt;P&gt;In Sales, I keep track of each sale action (quantity not needed righ now, assume it to be 1)&lt;/P&gt;&lt;P&gt;And a sale action has a status OK/NOK&lt;/P&gt;&lt;P&gt;A target is identified by a Target Label (that is the concatenantion of the ID, GROUP, and YEAR)&lt;/P&gt;&lt;P&gt;A target definition concerns several Items (several REQUESTED_ITEM_KEY) and for each item I can specify the requested quantity for the target to be achieved; only if all the lines concerning a Target are achieved, the target is achieved too&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When checking for target compliance, I only need to take from Sales, those lines for which the status is "OK"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The DIMS table has been built by extracting all the REQUESTED_ITEMS available in the other two table, by GROUP and YEAR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to :&lt;/P&gt;&lt;P&gt;Count for a TARGET Label, and a REQUESTED ITEM, the corresponding lines in SALES for which the Sales Rep have a Status="OK"&lt;/P&gt;&lt;P&gt;But When I compare this value with the REQUESTED QUANTITY I get a CIRCULAR DEPENDENCY&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;At the end I would like to build a matrix as the one below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 20:26:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ACTUAL-vs-TARGET/m-p/2427889#M64546</guid>
      <dc:creator>thebruuu</dc:creator>
      <dc:date>2022-03-30T20:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: ACTUAL vs TARGET</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ACTUAL-vs-TARGET/m-p/2430671#M64676</link>
      <description>&lt;P&gt;Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to assist you. Avoid posting screenshots of your source data if possible.&lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 01:16:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ACTUAL-vs-TARGET/m-p/2430671#M64676</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-04-01T01:16:39Z</dc:date>
    </item>
  </channel>
</rss>

