<?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 Calculate; Filter Multiple Columns with And in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2374911#M61107</link>
    <description>&lt;P&gt;No problem. Just wrap the values inside the curly brackets with double quotes ""&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2022 11:54:28 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-03-04T11:54:28Z</dc:date>
    <item>
      <title>Dax to Calculate; Filter Multiple Columns with And</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2374050#M61051</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have a table with the following columns: Permit Number, WOs, Net and I need to create a filter for my Card visual to get the correct results. I've tried to write numerous measures and can't get anything to work correctly. I am also not very good at this so I am sure I am doing something wrong.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the Total of the Net with the following filters applied: A filter to return the Total Net for Permit Number 5001 and only the total net for WO's 20, 21, and 22. And a filter to return the total net for Permit Numbers 2030, 2032, 3016, and 3017. Is this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much in advance!&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 04:49:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2374050#M61051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-04T04:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to Calculate; Filter Multiple Columns with And</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2374265#M61064</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;Maybe you can provide some sample data to make it easier for other people to solve. This is my sample data&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;&lt;P&gt;If your Permit Number and WO are whole numbers, you can just use the slider in the slicer to choose the filters as below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the Permit Number and WO are text, then you can hold CTRL when choosing the filter you desired as below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Owh ya, for the card visual I just drag the Sum of Net into the field. No measure needed.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if this is what you desired.&lt;/P&gt;&lt;P&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 06:50:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2374265#M61064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-04T06:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to Calculate; Filter Multiple Columns with And</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2374561#M61084</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Yes it is possible. If I fully understand your requirement then you can use the following codes (Make sure the columns&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;Permit Number&lt;/EM&gt; &amp;amp; &lt;EM&gt;WOs&amp;nbsp;&lt;/EM&gt;have integer&amp;nbsp;data type not text)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Measure1 =
VAR T1 =
    FILTER ( ALL ( 'Table' ), 'Table'[Permit Number] = 5001 )
VAR T2 =
    FILTER ( ALL ( 'Table' ), 'Table'[WOs] IN { 20, 21, 22 } )
VAR T3 =
    UNION ( T1, T2 )
VAR Result =
    SUMX ( T3, 'Table'[Net] )
RETURN
    Result&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;Measure2 =
VAR T1 =
    FILTER ( ALL ( 'Table' ), 'Table'[Permit Number] IN { 2030, 2032, 3016, 3017 } )
VAR Result =
    SUMX ( T1, 'Table'[Net] )
RETURN
    Result&lt;/LI-CODE&gt;&lt;P&gt;Please let me know if you face any trouble applying above or in case I misunderstood&amp;nbsp;your requirement. Thanks and have a great day!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 08:51:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2374561#M61084</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-04T08:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to Calculate; Filter Multiple Columns with And</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2374908#M61106</link>
      <description>&lt;P&gt;Thank you so much for your solution on this. Unfortunately, my WO column is a combination of Text and Whole Numbers so it won't let me convert it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 11:52:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2374908#M61106</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-04T11:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to Calculate; Filter Multiple Columns with And</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2374911#M61107</link>
      <description>&lt;P&gt;No problem. Just wrap the values inside the curly brackets with double quotes ""&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 11:54:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2374911#M61107</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-04T11:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to Calculate; Filter Multiple Columns with And</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2375005#M61112</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;As said. This is no problem. The code can be modified as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Measure1 =
VAR T1 =
    FILTER ( ALL ( 'Table' ), 'Table'[Permit Number] = 5001 )
VAR T2 =
    FILTER ( ALL ( 'Table' ), 'Table'[WOs] IN { "20", "21", "22" } )
VAR T3 =
    UNION ( T1, T2 )
VAR Result =
    SUMX ( T3, 'Table'[Net] )
RETURN
    Result&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;Measure2 =
VAR T1 =
    FILTER ( ALL ( 'Table' ), 'Table'[Permit Number] IN { 2030, 2032, 3016, 3017 } )
VAR Result =
    SUMX ( T1, 'Table'[Net] )
RETURN
    Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please le me know if you need help.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 12:42:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2375005#M61112</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-04T12:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to Calculate; Filter Multiple Columns with And</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2375036#M61113</link>
      <description>&lt;P&gt;Thank you so much! Measure 1 doesn't seem to be giving me the correct total for the data. Measure 2 worked and is giving me the correct total for the data. However, is there a way to combine the 2 measures? I need both of the measures on one card. Measure 2 is giving me the sum of all the net for the permits but it is missing the data associated with permit 5001 and the 3 associated work orders. Is there a way to fix measure 1 and apply both measures to the card?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 13:12:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2375036#M61113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-04T13:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to Calculate; Filter Multiple Columns with And</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2375042#M61114</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;The code for measure one actually sums up the Net values for all records that do not include permit No. 5001 and then computes (separately) the&amp;nbsp;Net values for all records that have&amp;nbsp;&lt;SPAN&gt;WO's code either 20, 21 or 22. Then it sums up both values together. If this is not what you need, please try to expain to me exactly waht your requirement is.&lt;BR /&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 13:21:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2375042#M61114</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-04T13:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to Calculate; Filter Multiple Columns with And</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2375044#M61115</link>
      <description>&lt;P&gt;So this is giving me the correct result:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure 2 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;T1&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Filter&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'RF21 Master Dose File'&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;'RF21 Master Dose File'[RWP_NUMBER]&lt;/SPAN&gt; &lt;SPAN&gt;IN&lt;/SPAN&gt;&lt;SPAN&gt; { &lt;/SPAN&gt;&lt;SPAN&gt;222032&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;223016&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;223017&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;223032&lt;/SPAN&gt;&lt;SPAN&gt;} )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;Result&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sumx&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;T1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'RF21 Master Dose File'&lt;/SPAN&gt;&lt;SPAN&gt;[NET_DOSE_REM]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Result&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Then I have this measure that is giving me the correct result:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[NET_DOSE_REM]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;KEEPFILTERS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'RF21 Master Dose File'[RWP_NUMBER]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;225001&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'RF21 Master Dose File'[WORK_REQUEST_NUMBER]&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;SPAN&gt;"64436091"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"64436532"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"55571027"&lt;/SPAN&gt;&lt;SPAN&gt;})&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If there is a way to combine these 2 measures it would be the perfect solution. Thanks!&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Mar 2022 13:21:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2375044#M61115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-04T13:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to Calculate; Filter Multiple Columns with And</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2375048#M61116</link>
      <description>&lt;P&gt;What do you mean by "combine"? Add their values together?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 13:24:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2375048#M61116</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-04T13:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to Calculate; Filter Multiple Columns with And</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2375053#M61117</link>
      <description>&lt;P&gt;Sorry about that. Yes, I need to add the values together so I can put the total into one card.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 13:26:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2375053#M61117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-04T13:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to Calculate; Filter Multiple Columns with And</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2375056#M61118</link>
      <description>&lt;P&gt;Yes you can create a new measure&lt;BR /&gt;Mearure3 = {Measur1] + [Measure2]&lt;BR /&gt;Then use it in your Card Visual&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 13:29:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2375056#M61118</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-04T13:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to Calculate; Filter Multiple Columns with And</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2375080#M61121</link>
      <description>&lt;P&gt;Everything is working perfect! Thank you so much!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 13:39:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-Calculate-Filter-Multiple-Columns-with-And/m-p/2375080#M61121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-04T13:39:34Z</dc:date>
    </item>
  </channel>
</rss>

