<?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: Posting this to correct topic (DAX CALCULATION CREATE A COMPLEX FILTER THAT HAS many AND'S / OR'S in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Posting-this-to-correct-topic-DAX-CALCULATION-CREATE-A-COMPLEX/m-p/2519059#M70142</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; For and use &amp;amp;&amp;amp; and For OR is || , use in for or of same filter &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;([Filter A] = "b" || [Filter B] = "b") &amp;amp;&amp;amp; [Filter C] = "x" &amp;amp;&amp;amp; ([filter D] in{ "1" ,"2"} )&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2022 02:00:20 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-05-17T02:00:20Z</dc:date>
    <item>
      <title>Posting this to correct topic (DAX CALCULATION CREATE A COMPLEX FILTER THAT HAS many AND'S / OR'S</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Posting-this-to-correct-topic-DAX-CALCULATION-CREATE-A-COMPLEX/m-p/2518541#M70128</link>
      <description>&lt;P&gt;I need to write a calcuate (sum) using this filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to figure out a way to do this is DAX filter but it doesn't like parenthesis in the filter.&lt;/P&gt;&lt;P&gt;Any ideas would be very appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Filter A = "b" or Filter B = "b") and Filter C = "x" and (filter D = "1" or filter D ="2")&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 19:13:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Posting-this-to-correct-topic-DAX-CALCULATION-CREATE-A-COMPLEX/m-p/2518541#M70128</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-16T19:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Posting this to correct topic (DAX CALCULATION CREATE A COMPLEX FILTER THAT HAS many AND'S / OR'S</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Posting-this-to-correct-topic-DAX-CALCULATION-CREATE-A-COMPLEX/m-p/2519059#M70142</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; For and use &amp;amp;&amp;amp; and For OR is || , use in for or of same filter &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;([Filter A] = "b" || [Filter B] = "b") &amp;amp;&amp;amp; [Filter C] = "x" &amp;amp;&amp;amp; ([filter D] in{ "1" ,"2"} )&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 02:00:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Posting-this-to-correct-topic-DAX-CALCULATION-CREATE-A-COMPLEX/m-p/2519059#M70142</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-05-17T02:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Posting this to correct topic (DAX CALCULATION CREATE A COMPLEX FILTER THAT HAS many AND'S / OR'S</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Posting-this-to-correct-topic-DAX-CALCULATION-CREATE-A-COMPLEX/m-p/2520704#M70257</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for the reply but it will not allow me to do what you advised. Below is the image of the error I get.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 13:41:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Posting-this-to-correct-topic-DAX-CALCULATION-CREATE-A-COMPLEX/m-p/2520704#M70257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-17T13:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Posting this to correct topic (DAX CALCULATION CREATE A COMPLEX FILTER THAT HAS many AND'S / OR'S</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Posting-this-to-correct-topic-DAX-CALCULATION-CREATE-A-COMPLEX/m-p/2520710#M70259</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for the reply but it will not allow me to do what you advised. Below is the image of the error I get.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 13:43:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Posting-this-to-correct-topic-DAX-CALCULATION-CREATE-A-COMPLEX/m-p/2520710#M70259</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-17T13:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Posting this to correct topic (DAX CALCULATION CREATE A COMPLEX FILTER THAT HAS many AND'S / OR'S</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Posting-this-to-correct-topic-DAX-CALCULATION-CREATE-A-COMPLEX/m-p/2525537#M70604</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;Try this measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
CALCULATE(
    DISTINCTCOUNT('Main'[ID]),
    FILTER('Main',
        ('Main'[ADMITSTATUS]="N"||'Main'[ETHNICITY]="N")
        &amp;amp;&amp;amp;'Main'[CITIZEN]="Y"
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;If this doesn't work for you, would you mind sharing a sample data without privacy and tell me what data you want to filter out? Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=04%7C01%7Cv-angzheng%40microsoft.com%7Cc2836cb0f62c42737df908da00b2514f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637823063108785591%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=l2n9IWjDvRUpfyJ8FUxudT62uUUFdhTT4x0ONcGKLpQ%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=04%7C01%7Cv-angzheng%40microsoft.com%7Cc2836cb0f62c42737df908da00b2514f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637823063108785591%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;amp;sdata=PhMztQoPfT%2FarZYCKWuZr3f%2FmE1rtAKge%2F5vksz5RGo%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best Regards,&lt;BR /&gt;Gao&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Community Support Team&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If there is any post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3" color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to get your questions answered quickly&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;--&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to provide sample data&lt;/SPAN&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 07:41:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Posting-this-to-correct-topic-DAX-CALCULATION-CREATE-A-COMPLEX/m-p/2525537#M70604</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-19T07:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Posting this to correct topic (DAX CALCULATION CREATE A COMPLEX FILTER THAT HAS many AND'S / OR'S</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Posting-this-to-correct-topic-DAX-CALCULATION-CREATE-A-COMPLEX/m-p/2526959#M70681</link>
      <description>&lt;P&gt;Thanks that worked.&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 14:47:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Posting-this-to-correct-topic-DAX-CALCULATION-CREATE-A-COMPLEX/m-p/2526959#M70681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-19T14:47:32Z</dc:date>
    </item>
  </channel>
</rss>

