<?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: Help setting up a Slicer / Filter with AND logic selecting from one field and filtering another. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-setting-up-a-Slicer-Filter-with-AND-logic-selecting-from/m-p/2497737#M68967</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="382486" data-lia-user-login="FDYBI" class="lia-mention lia-mention-user"&gt;FDYBI&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Does that make sense? If so, kindly mark my answer as the solution to close the case please. Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2022 06:35:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-06T06:35:08Z</dc:date>
    <item>
      <title>Help setting up a Slicer / Filter with AND logic selecting from one field and filtering another.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-setting-up-a-Slicer-Filter-with-AND-logic-selecting-from/m-p/2475012#M67542</link>
      <description>&lt;P&gt;I may not be explaining it very well, I'm finding it hard to actually describe what I'm trying to do.&amp;nbsp; I have a set of 'Types' and 'Sub Types' associated with various reports.&amp;nbsp; The each report may have multiple types and subtypes.&amp;nbsp; Originally each report ID would be listed and have the type and subtype for that report but if it had multiple types or subtypes it would be duplicated ie: report 21213 would have type "XX" and subtype "XY" and then the next row may have that same report 21213 with the type "YY" subtype "YX" or.&amp;nbsp; I now have it grouped together on report ID and concatenated a new column for type and subtypes so it now has report 21213 types "XX, YY" subtypes "XY,YX".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only problem is I need to be able to filter with the AND logic, and I know I can do it prety easily just by showing the filtes pane, going to advanced, and putting the contains AND contains logic but I want it to be a bit easier for the end users and not have to do that / type anything in.&amp;nbsp; So I'm wanting a slicer or check box list that I can have it pull possible types in, which I have still as simply "Type" and look in the "Types" for if it contains that, and on multiple selections contains that AND another selection. ie: show only reports containing Type XX AND YY.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried the following measure to no avail:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Search Measure = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;mycount&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;COUNTROWS&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;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Incident Data'[Type]&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SEARCH&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;[Type]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Combined Incident Types'[Incident Type]&lt;/SPAN&gt;&lt;SPAN&gt; ),, &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&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;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt; &lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;mycount&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Found"&lt;/SPAN&gt;&lt;SPAN&gt; , &lt;/SPAN&gt;&lt;SPAN&gt;"Not Found"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Apr 2022 12:56:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-setting-up-a-Slicer-Filter-with-AND-logic-selecting-from/m-p/2475012#M67542</guid>
      <dc:creator>FDYBI</dc:creator>
      <dc:date>2022-04-25T12:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help setting up a Slicer / Filter with AND logic selecting from one field and filtering another.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-setting-up-a-Slicer-Filter-with-AND-logic-selecting-from/m-p/2475647#M67584</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="382486" data-lia-user-login="FDYBI" class="lia-mention lia-mention-user"&gt;FDYBI&lt;/a&gt; , refer if this video can help&lt;/P&gt;
&lt;P&gt;And for Selected Values, All selected values are present: &lt;A href="https://youtu.be/X5T4rIZovHk" target="_blank"&gt;https://youtu.be/X5T4rIZovHk&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 17:05:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-setting-up-a-Slicer-Filter-with-AND-logic-selecting-from/m-p/2475647#M67584</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-25T17:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help setting up a Slicer / Filter with AND logic selecting from one field and filtering another.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-setting-up-a-Slicer-Filter-with-AND-logic-selecting-from/m-p/2482286#M68003</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="382486" data-lia-user-login="FDYBI" class="lia-mention lia-mention-user"&gt;FDYBI&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please refer to my pbix file to see if it helps you.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjI0MjRW0lGKjAQREUqxOgixiAgQEQkXM8EiZgoTQ9JrCjMPpC4WAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [report = _t, #"type" = _t, #"sub-type" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"report", Int64.Type}, {"type", type text}, {"sub-type", type text}}),
    #"Grouped Rows" = Table.Group(#"Changed Type", {"report"}, {{"Count", each Text.Combine([type], ","),type text}, {"subtype", each Text.Combine([#"sub-type"],","),type text}})
in
    #"Grouped Rows"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I have misundstood your meaning, please provide your desired output and pbix file without privacy information.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/td-p/1447523" target="_self"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 07:12:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-setting-up-a-Slicer-Filter-with-AND-logic-selecting-from/m-p/2482286#M68003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-28T07:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help setting up a Slicer / Filter with AND logic selecting from one field and filtering another.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-setting-up-a-Slicer-Filter-with-AND-logic-selecting-from/m-p/2497737#M68967</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="382486" data-lia-user-login="FDYBI" class="lia-mention lia-mention-user"&gt;FDYBI&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Does that make sense? If so, kindly mark my answer as the solution to close the case please. Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 06:35:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-setting-up-a-Slicer-Filter-with-AND-logic-selecting-from/m-p/2497737#M68967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-06T06:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help setting up a Slicer / Filter with AND logic selecting from one field and filtering another.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-setting-up-a-Slicer-Filter-with-AND-logic-selecting-from/m-p/2502747#M69221</link>
      <description>&lt;P&gt;It made sense for grouping; however, I did that myself through the initial bringing in of the data in power query.&amp;nbsp; I have no issue with concatenating the data into new columns.&amp;nbsp; What I'm having an issue with is creating a slicer, or slicers, to perform with an AND logic so someone can click on multiple types and show if and it contains the item selected AND another item selected.&amp;nbsp; Ie: a slicer / selectable filter that you can click "XX" AND "YY" and it will show you&amp;nbsp;21213 and 21215 in your example but not 21214.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 17:32:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-setting-up-a-Slicer-Filter-with-AND-logic-selecting-from/m-p/2502747#M69221</guid>
      <dc:creator>FDYBI</dc:creator>
      <dc:date>2022-05-09T17:32:31Z</dc:date>
    </item>
  </channel>
</rss>

