<?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 CALCULATE with multiple filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-with-multiple-filters/m-p/2242039#M53709</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a simple DAX measure that calculates the sum of sales for the column product, selecting only "iphone", "Samsung" and "Hawaii".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with below measure but it does not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Smart Phones Sales = CALCULATE(SUM(Sales[Price]), Sales[product] = "iPhone",&amp;nbsp;Sales[product] = "Samsung",&amp;nbsp;Sales[product] = "Hawaii")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Dec 2021 08:44:47 GMT</pubDate>
    <dc:creator>Eesa</dc:creator>
    <dc:date>2021-12-16T08:44:47Z</dc:date>
    <item>
      <title>CALCULATE with multiple filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-with-multiple-filters/m-p/2242039#M53709</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a simple DAX measure that calculates the sum of sales for the column product, selecting only "iphone", "Samsung" and "Hawaii".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with below measure but it does not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Smart Phones Sales = CALCULATE(SUM(Sales[Price]), Sales[product] = "iPhone",&amp;nbsp;Sales[product] = "Samsung",&amp;nbsp;Sales[product] = "Hawaii")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 08:44:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-with-multiple-filters/m-p/2242039#M53709</guid>
      <dc:creator>Eesa</dc:creator>
      <dc:date>2021-12-16T08:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE with multiple filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-with-multiple-filters/m-p/2242188#M53716</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332918" data-lia-user-login="Eesa" class="lia-mention lia-mention-user"&gt;Eesa&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try below code:-&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Smart Phones Sales =
CALCULATE (
    SUM ( Sales[Price] ),
    FILTER (
        Sales,
        Sales[product] = "iPhone"
            &amp;amp;&amp;amp; Sales[product] = "Samsung"
            &amp;amp;&amp;amp; Sales[product] = "Hawaii"
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;iphone,samsung,hawaii&amp;nbsp;&lt;/STRONG&gt;is case sensitive so it should be written in same way as its available in dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samarth&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 09:54:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-with-multiple-filters/m-p/2242188#M53716</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2021-12-16T09:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE with multiple filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-with-multiple-filters/m-p/2242269#M53723</link>
      <description>&lt;P&gt;Hi Samarth,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply. I tried but it does not work.&amp;nbsp;&lt;BR /&gt;when I tried with single filter like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Smart Phones Sales =
CALCULATE (
    SUM ( Sales[Price] ),
    FILTER (
        Sales,
        Sales[product] = "iPhone"
))&lt;/LI-CODE&gt;&lt;P&gt;It works well, but when I add another filter it gives me (Blank) with card visual. I tried to copy and paste the the word to avoid case errors but still does not work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 10:49:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-with-multiple-filters/m-p/2242269#M53723</guid>
      <dc:creator>Eesa</dc:creator>
      <dc:date>2021-12-16T10:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE with multiple filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-with-multiple-filters/m-p/2242288#M53724</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332918" data-lia-user-login="Eesa" class="lia-mention lia-mention-user"&gt;Eesa&lt;/a&gt;&amp;nbsp;,Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Smart Phones Sales =
CALCULATE (
    SUM ( Sales[Price] ),
    FILTER (
        Sales,
        Sales[product] in { "iPhone","Samsung","Hawaii"}
))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 Dec 2021 11:06:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-with-multiple-filters/m-p/2242288#M53724</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2021-12-16T11:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE with multiple filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-with-multiple-filters/m-p/2242299#M53725</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312802" data-lia-user-login="Samarth_18" class="lia-mention lia-mention-user"&gt;Samarth_18&lt;/a&gt;&lt;BR /&gt;It works!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 11:21:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-with-multiple-filters/m-p/2242299#M53725</guid>
      <dc:creator>Eesa</dc:creator>
      <dc:date>2021-12-16T11:21:45Z</dc:date>
    </item>
  </channel>
</rss>

