<?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 How to use multiple selections in slicer to show results containing ALL of those values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4037505#M160047</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am fairly new to PowerBi and I'm working on a dashboard that takes selected jobs and shows the different procedures that contain those jobs. However, when selecting multiple jobs, the resulting table produces procedures that contain 1 or all of the selected jobs, and I would like for the table to show results of procedures that at minimum contain all of the selected jobs (essentially it's a filter that would filter based on an AND function of the selected jobs). Furthermore, I'd like to make a separate filter that shows results that only contain those selected jobs and not more.&lt;/P&gt;&lt;P&gt;Here is an example of the two tables I'd want:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Selected Jobs: Job A, Job B, Job C&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table 1 with Filtered Results should show:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Procedure 1: Job A, job b, job c, job d&lt;/P&gt;&lt;P&gt;Procedure 2: Job A, Job B, Job C, Job D, Job F, jOB Z&lt;/P&gt;&lt;P&gt;Procedure 3: Job a, job b, job c&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table 2 with Filtered Results:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Procedure 3: job a, job b, job c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, my table is producing results such as:&lt;/P&gt;&lt;P&gt;procedure 1&lt;/P&gt;&lt;P&gt;procedure 2&lt;/P&gt;&lt;P&gt;procedure 3&lt;/P&gt;&lt;P&gt;Procedure 4: job a&lt;/P&gt;&lt;P&gt;procedure 5: job a, job c, job d&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which contain all combinations of any of the selected jobs, but don't show the procedures that at minimum have ALL the selected jobs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on how to tackle this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Iwona&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2024 15:41:43 GMT</pubDate>
    <dc:creator>swagga90</dc:creator>
    <dc:date>2024-07-11T15:41:43Z</dc:date>
    <item>
      <title>How to use multiple selections in slicer to show results containing ALL of those values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4037505#M160047</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am fairly new to PowerBi and I'm working on a dashboard that takes selected jobs and shows the different procedures that contain those jobs. However, when selecting multiple jobs, the resulting table produces procedures that contain 1 or all of the selected jobs, and I would like for the table to show results of procedures that at minimum contain all of the selected jobs (essentially it's a filter that would filter based on an AND function of the selected jobs). Furthermore, I'd like to make a separate filter that shows results that only contain those selected jobs and not more.&lt;/P&gt;&lt;P&gt;Here is an example of the two tables I'd want:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Selected Jobs: Job A, Job B, Job C&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table 1 with Filtered Results should show:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Procedure 1: Job A, job b, job c, job d&lt;/P&gt;&lt;P&gt;Procedure 2: Job A, Job B, Job C, Job D, Job F, jOB Z&lt;/P&gt;&lt;P&gt;Procedure 3: Job a, job b, job c&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table 2 with Filtered Results:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Procedure 3: job a, job b, job c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, my table is producing results such as:&lt;/P&gt;&lt;P&gt;procedure 1&lt;/P&gt;&lt;P&gt;procedure 2&lt;/P&gt;&lt;P&gt;procedure 3&lt;/P&gt;&lt;P&gt;Procedure 4: job a&lt;/P&gt;&lt;P&gt;procedure 5: job a, job c, job d&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which contain all combinations of any of the selected jobs, but don't show the procedures that at minimum have ALL the selected jobs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on how to tackle this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Iwona&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 15:41:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4037505#M160047</guid>
      <dc:creator>swagga90</dc:creator>
      <dc:date>2024-07-11T15:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to use multiple selections in slicer to show results containing ALL of those values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4037576#M160057</link>
      <description>&lt;P&gt;Hey, Could you show your data model ? I'm not sure that you have only one table or two?&lt;/P&gt;&lt;P&gt;Could you show us your screen ?&lt;/P&gt;&lt;P&gt;It is very easy to copy your screen here.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;As you see below :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 16:12:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4037576#M160057</guid>
      <dc:creator>GuillaumePower</dc:creator>
      <dc:date>2024-07-11T16:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use multiple selections in slicer to show results containing ALL of those values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4037981#M160070</link>
      <description>&lt;P&gt;It is one table that contains many columns. The two columns of interest are Job and Procedure. For each procedure, there can be a number of jobs, and so, each procedure will have n number of rows depending on what jobs are associated with it. In terms of the visual/page: The slicer uses the available job options from this table. The table visual gets filtered based on what jobs you select.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 20:01:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4037981#M160070</guid>
      <dc:creator>swagga90</dc:creator>
      <dc:date>2024-07-11T20:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use multiple selections in slicer to show results containing ALL of those values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4039092#M160138</link>
      <description>&lt;P&gt;There is certainly a mistake in your data model, you should show everything on the screen&amp;nbsp; to find what dosn't work. You can hide the&amp;nbsp; data that you don't want share but we can't help whithout a screenshot.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 09:24:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4039092#M160138</guid>
      <dc:creator>GuillaumePower</dc:creator>
      <dc:date>2024-07-12T09:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use multiple selections in slicer to show results containing ALL of those values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4039571#M160167</link>
      <description>&lt;P&gt;What screen are you hoping to see? The visual? The model between tables?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 13:30:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4039571#M160167</guid>
      <dc:creator>swagga90</dc:creator>
      <dc:date>2024-07-12T13:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use multiple selections in slicer to show results containing ALL of those values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4039667#M160173</link>
      <description>&lt;P&gt;Yes all the visuals and the table, (you can hide what you wan't not show). Think that we are in the same office, I would have to see your screen to really understand) &lt;STRONG&gt;Only 2 seconds to copy the text below in image.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 14:19:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4039667#M160173</guid>
      <dc:creator>GuillaumePower</dc:creator>
      <dc:date>2024-07-12T14:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to use multiple selections in slicer to show results containing ALL of those values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4039846#M160178</link>
      <description>&lt;P&gt;Here is a modified (I've removed some of the details) screenshot of the visual itself:&amp;nbsp;&lt;/P&gt;&lt;P&gt;You select the jobs in the slicer at the top.&lt;/P&gt;&lt;P&gt;The table below it generates a list of procedures that contain those jobs. I've got it to the point that it displays the selected jobs as if it was an AND function, however, it shows procedures with the number of selected jobs as well as n-1. I used a measure that i found online for this AND-ONLY condition, but that example used two separate tables and i've been using only one table (data source) so perhaps something in that logic is flawed resulting in this odd behaviour.&lt;/P&gt;&lt;P&gt;In the example below, i have selected 6 jobs, and the resulting list shows a number of procedures. 1 of them has the 6 jobs in it and the other only have 5 of those 6. T&lt;STRONG&gt;he other feature I'd like is for that table to show the total jobs in the procedure&lt;/STRONG&gt;, &lt;U&gt;regardless&lt;/U&gt; of the slicer selection. As you can see, to the table to the right, there are more than the 6 selected jobs. Is there a way to make a measure that calculates the total number of jobs irrespective of the filter/slicer applied? I've removed some details and changed names of some of the things for clarity, but I hope i didn't make it more confusing.&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;Here is a snapshot of the table (data), 'Standard Job proc':&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is that measure that i used to filter the visualization with (it ends up being the column that says 'number of jobs matching selected job count'):&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;</description>
      <pubDate>Fri, 12 Jul 2024 16:03:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4039846#M160178</guid>
      <dc:creator>swagga90</dc:creator>
      <dc:date>2024-07-12T16:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use multiple selections in slicer to show results containing ALL of those values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4040111#M160191</link>
      <description>&lt;P&gt;I've begun to work with your code, I'll send you back tomorow a PowerBI file. But&amp;nbsp; it s important to know exactly what you do with the Dax. You need one month at&amp;nbsp; least to know well how to work with. (there is video course on&amp;nbsp; udemy for the Dax)&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>Sat, 13 Jul 2024 16:04:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4040111#M160191</guid>
      <dc:creator>GuillaumePower</dc:creator>
      <dc:date>2024-07-13T16:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use multiple selections in slicer to show results containing ALL of those values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4040596#M160218</link>
      <description>&lt;P&gt;In fact your measure doesn't work because in your measure the &lt;EM&gt;&lt;STRONG&gt;selectedjobs&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp; is always equal to the &lt;EM&gt;&lt;STRONG&gt;countrowsprostjobs&lt;/STRONG&gt;&lt;/EM&gt;, so it's a non sens to compare this two value. I've tested this in a same example :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;You'll have the same result for each proc, like below :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;so it's a non sense to try to know when&amp;nbsp; they are different :&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;if (countrowsprostdjobs&amp;gt;=countrowsjobs,countrowsprostdjobs,blank())&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;You can test this whith this powerbi :&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1atacfNoV_bJ5GTH-RkqPSUzEz2tZESZM/view?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/1atacfNoV_bJ5GTH-RkqPSUzEz2tZESZM/view?usp=sharing&lt;/A&gt;&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;&lt;FONT color="#000000"&gt;About what you have asked to clear the filter, you can use the Dax function Removefilter : you have to use something&amp;nbsp; like : countrows(filter(Table),removefilter()),&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;A good advice, it to test every part&amp;nbsp; of the measure that you re writing to find the right way to your duty.&lt;/FONT&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2024 16:05:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-multiple-selections-in-slicer-to-show-results/m-p/4040596#M160218</guid>
      <dc:creator>GuillaumePower</dc:creator>
      <dc:date>2024-07-13T16:05:41Z</dc:date>
    </item>
  </channel>
</rss>

