<?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 show a list of all parts that are related to some selected products and not to others? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3816120#M149239</link>
    <description>&lt;P&gt;Hello to you all and thanks for all the help you could bring on this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to find any other thread, but I'm not sure there is one for this doubt.&lt;/P&gt;&lt;P&gt;Sorry if I duplicate and/or misplaced this question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table where I relate Products and Parts, each product uses varios parts and each part, could be (or not) used in many products.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Products&lt;/TD&gt;&lt;TD&gt;Parts&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prod-A&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Part-1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prod-A&lt;/TD&gt;&lt;TD&gt;Part-3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prod-A&lt;/TD&gt;&lt;TD&gt;Part-4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prod-B&lt;/TD&gt;&lt;TD&gt;Part-2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prod-B&lt;/TD&gt;&lt;TD&gt;Part-3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prod-C&lt;/TD&gt;&lt;TD&gt;Part-1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prod-C&lt;/TD&gt;&lt;TD&gt;Part-4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal we have is to have a dynamic list that only shows the parts that are ONLY related to the products selected on a visual.&lt;/P&gt;&lt;P&gt;As if for example, we have product A and C selected, we show only Parts 1 and 4 (because Part-2 is not in Prod-A nor Prod-C and Part-3 is in Prod-A but also in Prod-B, and Prod-B is not selected in the visual)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone could help us with it it would be really apreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UPDATE_____________________________&lt;/P&gt;&lt;P&gt;PBIX file here:.&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1myxBVZUa0MzUzitUFyEiaAFWOMIHIEl_/view?usp=drive_link" target="_blank" rel="nofollow noopener noreferrer"&gt;https://drive.google.com/file/d/1myxBVZUa0MzUzitUFyEiaAFWOMIHIEl_/view?usp=drive_link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that might help to understand a bit better what I was trying to say. Sorry if I wasn't clear enough ^^&lt;BR /&gt;&lt;BR /&gt;I'm trying to create a DAX similar to this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="andale mono,times"&gt;&lt;FONT face="andale mono,times"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't know why is not working (Also I had to put a CONCATENATEX because otherwise when I added this measure to a table it kept saying that was containing more values than expected (it expected 1) but the whole point of the measure is to create those many values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure what I'm doing wrong here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be a great help if somebody could give me a hint or something&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;FONT face="andale mono,times"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 18 Apr 2024 09:30:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-04-18T09:30:48Z</dc:date>
    <item>
      <title>How to show a list of all parts that are related to some selected products and not to others?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3816120#M149239</link>
      <description>&lt;P&gt;Hello to you all and thanks for all the help you could bring on this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to find any other thread, but I'm not sure there is one for this doubt.&lt;/P&gt;&lt;P&gt;Sorry if I duplicate and/or misplaced this question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table where I relate Products and Parts, each product uses varios parts and each part, could be (or not) used in many products.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Products&lt;/TD&gt;&lt;TD&gt;Parts&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prod-A&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Part-1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prod-A&lt;/TD&gt;&lt;TD&gt;Part-3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prod-A&lt;/TD&gt;&lt;TD&gt;Part-4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prod-B&lt;/TD&gt;&lt;TD&gt;Part-2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prod-B&lt;/TD&gt;&lt;TD&gt;Part-3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prod-C&lt;/TD&gt;&lt;TD&gt;Part-1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prod-C&lt;/TD&gt;&lt;TD&gt;Part-4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal we have is to have a dynamic list that only shows the parts that are ONLY related to the products selected on a visual.&lt;/P&gt;&lt;P&gt;As if for example, we have product A and C selected, we show only Parts 1 and 4 (because Part-2 is not in Prod-A nor Prod-C and Part-3 is in Prod-A but also in Prod-B, and Prod-B is not selected in the visual)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone could help us with it it would be really apreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UPDATE_____________________________&lt;/P&gt;&lt;P&gt;PBIX file here:.&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1myxBVZUa0MzUzitUFyEiaAFWOMIHIEl_/view?usp=drive_link" target="_blank" rel="nofollow noopener noreferrer"&gt;https://drive.google.com/file/d/1myxBVZUa0MzUzitUFyEiaAFWOMIHIEl_/view?usp=drive_link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that might help to understand a bit better what I was trying to say. Sorry if I wasn't clear enough ^^&lt;BR /&gt;&lt;BR /&gt;I'm trying to create a DAX similar to this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="andale mono,times"&gt;&lt;FONT face="andale mono,times"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't know why is not working (Also I had to put a CONCATENATEX because otherwise when I added this measure to a table it kept saying that was containing more values than expected (it expected 1) but the whole point of the measure is to create those many values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure what I'm doing wrong here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be a great help if somebody could give me a hint or something&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;FONT face="andale mono,times"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Apr 2024 09:30:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3816120#M149239</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-18T09:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to show a list of all parts that are related to some selected products and not to others?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3816346#M149254</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.&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;LI-CODE lang="markup"&gt;Parts list expected result: =
VAR _condition =
    CALCULATE ( COUNTROWS ( 'Product' ), ALLSELECTED ( 'Product' ) )
RETURN
    INT (
        _condition
            = CALCULATE ( COUNTROWS ( Data ), ALLSELECTED ( 'Product'[Products] ) )
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 07 Apr 2024 04:39:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3816346#M149254</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-04-07T04:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to show a list of all parts that are related to some selected products and not to others?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3816463#M149261</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3816120" target="_blank" rel="noopener"&gt;To create a dynamic list in Power BI that only shows the parts related to the selected products, you can use the FILTER function in DAX&lt;/A&gt;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3816120" target="_blank" rel="noopener"&gt;1&lt;/A&gt;. Here’s an example of how you might write this measure:&lt;/P&gt;&lt;PRE&gt;DynamicPartsList = 
CALCULATE(
    VALUES(Table1[Parts]),
    FILTER(
        ALL(Table1),
        COUNTROWS(
            FILTER(
                VALUES(Table1[Products]),
                CALCULATE(
                    COUNTROWS(Table1),
                    ALLEXCEPT(Table1, Table1[Products])
                ) &amp;gt; 0
            )
        ) &amp;gt; 0
    )
)&lt;/PRE&gt;&lt;P&gt;In this measure, Table1 is the name of your table. This measure creates a list of parts that are related to the selected products. The ALL function is used to remove any filters that might limit the rows being evaluated. &lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3816120" target="_blank" rel="noopener"&gt;The VALUES function is used to get a list of the selected products, and the FILTER function is used to filter the parts based on these selected products&lt;/A&gt;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3816120" target="_blank" rel="noopener"&gt;1&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Please replace Table1 with your actual table name. If you need further assistance or have more specific requirements, feel free to ask! &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 07 Apr 2024 08:52:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3816463#M149261</guid>
      <dc:creator>AnalyticsWizard</dc:creator>
      <dc:date>2024-04-07T08:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to show a list of all parts that are related to some selected products and not to others?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3816792#M149270</link>
      <description>&lt;P&gt;Simple enough,&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 15:24:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3816792#M149270</guid>
      <dc:creator>ThxAlot</dc:creator>
      <dc:date>2024-04-07T15:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to show a list of all parts that are related to some selected products and not to others?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3832459#M149858</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;Jihwan_Kim!&lt;BR /&gt;&lt;BR /&gt;Thanks for the help ^^ Sadly, it has not quite the same behavior as I've tried to describe, my bad.&lt;/P&gt;&lt;P&gt;I'll try to clarify on this.&lt;BR /&gt;&lt;BR /&gt;At least the PBIX file you attached uses the slicer as normal. If I select Prod B for example, shows part 2 and 3. But because 3 is also in Prod A, we shouldn't be displaying it in the list, the list when just Prod B is selected in the slicer should be just Part 2, since it's the only part related to Prod B and not to anyone else.&lt;BR /&gt;&lt;BR /&gt;Same thing happens when selecting Prod C (shows Part 1 and 4, instead of just part 4) or when selecting multiple Prods like Prod B and C&lt;BR /&gt;&lt;BR /&gt;Could be that?&lt;BR /&gt;&lt;BR /&gt;Thanks again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 09:28:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3832459#M149858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-18T09:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to show a list of all parts that are related to some selected products and not to others?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3832463#M149859</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="707047" data-lia-user-login="AnalyticsWizard" class="lia-mention lia-mention-user"&gt;AnalyticsWizard&lt;/a&gt;&amp;nbsp;, thanks to you as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I do not know why is not working for me this measures. they just list the parts directly related to the products selected, nothing more nothing less.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 09:28:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3832463#M149859</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-18T09:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to show a list of all parts that are related to some selected products and not to others?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3832466#M149861</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="474658" data-lia-user-login="ThxAlot" class="lia-mention lia-mention-user"&gt;ThxAlot&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help, but it's more or less like &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;&amp;nbsp;solution.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;At least the PBIX file you attached uses the slicer as normal. If I select Prod B for example, shows part 2 and 3. But because 3 is also in Prod A, we shouldn't be displaying it in the list, the list when just Prod B is selected in the slicer should be just Part 2, since it's the only part related to Prod B and not to anyone else.&lt;BR /&gt;&lt;BR /&gt;Same thing happens when selecting Prod C (shows Part 1 and 4, instead of just part 4) or when selecting multiple Prods like Prod B and C&lt;BR /&gt;&lt;BR /&gt;I'll add to the description a better explanation&lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 09:29:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-a-list-of-all-parts-that-are-related-to-some/m-p/3832466#M149861</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-18T09:29:27Z</dc:date>
    </item>
  </channel>
</rss>

