<?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: DAX to return true if our plant makes the sku or not. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-return-true-if-our-plant-makes-the-sku-or-not/m-p/1198246#M19097</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And incase you only want for site id 001.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure =
CALCULATE (
    SUM ( Table[Salesunit] ),
    Table[Siteid] = "001"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jul 2020 14:29:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-02T14:29:52Z</dc:date>
    <item>
      <title>DAX to return true if our plant makes the sku or not.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-return-true-if-our-plant-makes-the-sku-or-not/m-p/1198206#M19089</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following command in tableau:&lt;/P&gt;&lt;P&gt;(Fixed product_name: sum(IF [site_id] = "001" THEN [sale_unit] END))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do something similar in power BI where I can recognize what product_names are made in our plant and sum the sale_units by matching it to our site_id.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea on how I can achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 14:14:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-return-true-if-our-plant-makes-the-sku-or-not/m-p/1198206#M19089</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-02T14:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to return true if our plant makes the sku or not.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-return-true-if-our-plant-makes-the-sku-or-not/m-p/1198227#M19092</link>
      <description>&lt;P&gt;HI&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try a measure like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure =
CALCULATE (
    SUM ( Table[Salesunit] ),
    ALLEXCEPT (
        Table,
        Table[site_id]
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 14:22:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-return-true-if-our-plant-makes-the-sku-or-not/m-p/1198227#M19092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-02T14:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to return true if our plant makes the sku or not.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-return-true-if-our-plant-makes-the-sku-or-not/m-p/1198246#M19097</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And incase you only want for site id 001.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure =
CALCULATE (
    SUM ( Table[Salesunit] ),
    Table[Siteid] = "001"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 14:29:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-return-true-if-our-plant-makes-the-sku-or-not/m-p/1198246#M19097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-02T14:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to return true if our plant makes the sku or not.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-return-true-if-our-plant-makes-the-sku-or-not/m-p/1198270#M19099</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Exactly what I needed, thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 14:37:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-return-true-if-our-plant-makes-the-sku-or-not/m-p/1198270#M19099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-02T14:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to return true if our plant makes the sku or not.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-return-true-if-our-plant-makes-the-sku-or-not/m-p/1268636#M21328</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;I know it has been a while since this post, but do you know how we could to the flip of this. I want to see what our plant sends to other plants and see whether the site we send it to has the capability to make that sku.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried doing the flip of what we initially had for our home site with this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;_Site Produces = CALCULATE ( SUM ( 'table'[sales_unit] ), ALLEXCEPT('table','table'[prod_name]), 'table'[site_code] = "011", 'table'[site_code] = "018", 'table'[site_code] = "019", 'table'[site_code] = "020", 'table'[site_code] = "065") &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then created a conditional statement to check for T/F condition of production.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;_Site Produces(T/F) = if([_Site Produces] &amp;lt;&amp;gt; 0, "True","False")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This however, is always giving me all false, dispite there being cases where it should be true. Is there anything I may be missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 13:30:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-return-true-if-our-plant-makes-the-sku-or-not/m-p/1268636#M21328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-03T13:30:48Z</dc:date>
    </item>
  </channel>
</rss>

