<?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: Syntax for Calculated Column to Filter results from three fields using OR logic in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Syntax-for-Calculated-Column-to-Filter-results-from-three-fields/m-p/3204914#M116695</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;- Thank you SO much!&amp;nbsp; That gets me much closer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the significance of the TRUE, TRUE, FALSE at the end?&lt;/P&gt;&lt;P&gt;I like to understand &lt;EM&gt;why&lt;/EM&gt; I am doing what I'm doing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently, since the 'Change Type' field is not boolean and the other two fields are,&amp;nbsp; FILTER is giving me an error.&lt;/P&gt;&lt;P&gt;So, I am trying to make another calculated column called "Emergency" that returns "True" for any change where Change Type = "Emergency Change"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;I have tried this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Emergency = &lt;/SPAN&gt;&lt;SPAN&gt;CONTAINS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Full SharePoint Export'&lt;/SPAN&gt;&lt;SPAN&gt;[Change Type]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"Emergency Change"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But am getting "too few arguements were passed to the FILTER function."&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I'll keep researching and let you know if I figure it out.&amp;nbsp; I'd be happy for advice too!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sarah&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 25 Apr 2023 11:33:08 GMT</pubDate>
    <dc:creator>SarahHope</dc:creator>
    <dc:date>2023-04-25T11:33:08Z</dc:date>
    <item>
      <title>Syntax for Calculated Column to Filter results from three fields using OR logic</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Syntax-for-Calculated-Column-to-Filter-results-from-three-fields/m-p/3203731#M116604</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'm brand new to Power BI. I'm trying to create a calculated column containing a filter for three other columns in the same data sheet using OR logic.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want a calculated column showing me all changes that will need post implementation review.&amp;nbsp; I want to name that column "PIR" and I want a Boolean result in that column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change Type = "Emergency Change"&lt;/P&gt;&lt;P&gt;OR&lt;BR /&gt;Expedited = True&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;Resulted in Outage = True&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried a number of configurations and tried to follow examples I have found in help forums.&amp;nbsp; But I'm just not getting it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I have for starters:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;PIR = FILTER('Full SharePoint Export'[Expedited]=True || 'Full SharePoint Export'[Change Type] = "Emergency Change" || 'Full SharePoint Export'[Resulted in Outage] = TRUE)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;My syntax is incorrect.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I could really use a little help.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sarah&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 20:40:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Syntax-for-Calculated-Column-to-Filter-results-from-three-fields/m-p/3203731#M116604</guid>
      <dc:creator>SarahHope</dc:creator>
      <dc:date>2023-04-24T20:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Calculated Column to Filter results from three fields using OR logic</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Syntax-for-Calculated-Column-to-Filter-results-from-three-fields/m-p/3203833#M116611</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="549939" data-lia-user-login="SarahHope" class="lia-mention lia-mention-user"&gt;SarahHope&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try like:&lt;/P&gt;&lt;DIV&gt;PIR =&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;IF('Full SharePoint Export'[Expedited]=&lt;SPAN&gt;TRUE&lt;/SPAN&gt; || 'Full SharePoint Export'[Change Type] = "Emergency Change" || 'Full SharePoint Export'[Resulted in Outage] = TRUE, TRUE, FALSE)&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Apr 2023 21:46:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Syntax-for-Calculated-Column-to-Filter-results-from-three-fields/m-p/3203833#M116611</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-04-24T21:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Calculated Column to Filter results from three fields using OR logic</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Syntax-for-Calculated-Column-to-Filter-results-from-three-fields/m-p/3204914#M116695</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;- Thank you SO much!&amp;nbsp; That gets me much closer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the significance of the TRUE, TRUE, FALSE at the end?&lt;/P&gt;&lt;P&gt;I like to understand &lt;EM&gt;why&lt;/EM&gt; I am doing what I'm doing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently, since the 'Change Type' field is not boolean and the other two fields are,&amp;nbsp; FILTER is giving me an error.&lt;/P&gt;&lt;P&gt;So, I am trying to make another calculated column called "Emergency" that returns "True" for any change where Change Type = "Emergency Change"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;I have tried this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Emergency = &lt;/SPAN&gt;&lt;SPAN&gt;CONTAINS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Full SharePoint Export'&lt;/SPAN&gt;&lt;SPAN&gt;[Change Type]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"Emergency Change"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But am getting "too few arguements were passed to the FILTER function."&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I'll keep researching and let you know if I figure it out.&amp;nbsp; I'd be happy for advice too!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sarah&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Apr 2023 11:33:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Syntax-for-Calculated-Column-to-Filter-results-from-three-fields/m-p/3204914#M116695</guid>
      <dc:creator>SarahHope</dc:creator>
      <dc:date>2023-04-25T11:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Calculated Column to Filter results from three fields using OR logic</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Syntax-for-Calculated-Column-to-Filter-results-from-three-fields/m-p/3204968#M116698</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;I've got it!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Emergency = CONTAINSSTRING('Full SharePoint Export'[Change Type],"Emergency Change")&lt;BR /&gt;This works!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also learned that the field for "Resulted in Outage"&lt;EM&gt; looked&lt;/EM&gt; like True/False, but it wasn't.&amp;nbsp; I changed it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything works.&lt;/P&gt;&lt;P&gt;I'm still wondering what the&amp;nbsp;&lt;SPAN&gt;TRUE, TRUE, FALSE) at the end of the statement you provided means.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That's not urgent, but I would like to know.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, I want to accept the solution with a caveat - Can I do that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"This solution works as long as all the fields are True/False"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 12:00:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Syntax-for-Calculated-Column-to-Filter-results-from-three-fields/m-p/3204968#M116698</guid>
      <dc:creator>SarahHope</dc:creator>
      <dc:date>2023-04-25T12:00:06Z</dc:date>
    </item>
  </channel>
</rss>

