<?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: Slicer with results from two different tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-results-from-two-different-tables/m-p/3217822#M117516</link>
    <description>&lt;P&gt;It wouldn't work on the title as there is no selected property. You would need to do something on a row where there is only 1 property.&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 12:41:41 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2023-05-03T12:41:41Z</dc:date>
    <item>
      <title>Slicer with results from two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-results-from-two-different-tables/m-p/3217559#M117501</link>
      <description>&lt;P class="lia-align-left"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am new to Power Bi, I am sorry if my question is too obvious.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have the following problem: I have two tables, table1 and table2, and where each table has a unique "domain name" and "property name". Table 1 has all the existing records, as for table 2 it is generated daily with some missing records and I have to point out those missing records.&lt;BR /&gt;&lt;BR /&gt;What I want to achieve, is whenever I select a domain name, I want a slicer that groups all properties while colouring missing properties. I was able to show the slicer of each table, but I could not group them in one.&lt;BR /&gt;&lt;BR /&gt;I tried this dax but it does not seem to work (based on the results 1 or 0, I will create a rule to automatically colorate the cells in the slicer) :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MyMeasure = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;T2&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;= &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;table2&lt;/SPAN&gt;&lt;SPAN&gt;[property]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('table1'[property])=T2&amp;nbsp;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="lia-align-left"&gt;&lt;BR /&gt;&lt;BR /&gt;Example:&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Table1&lt;/P&gt;&lt;TABLE border="2"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;domain&lt;/TD&gt;&lt;TD&gt;property&lt;/TD&gt;&lt;TD&gt;num&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;aa&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;bb&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;cc&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;ee&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;ff&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;70&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P class="lia-align-left"&gt;&lt;BR /&gt;Table2&lt;/P&gt;&lt;TABLE border="2"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;domain&lt;/TD&gt;&lt;TD&gt;property&lt;/TD&gt;&lt;TD&gt;num&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;aa&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;bb&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;ff&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;70&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P class="lia-align-left"&gt;&lt;BR /&gt;Results:&lt;BR /&gt;when selecting for example domaine A, I should get a new slicer as (property cc is missing in table 2):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;aa&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;bb&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;cc&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P class="lia-align-left"&gt;&lt;BR /&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 10:12:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-results-from-two-different-tables/m-p/3217559#M117501</guid>
      <dc:creator>abde139</dc:creator>
      <dc:date>2023-05-03T10:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer with results from two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-results-from-two-different-tables/m-p/3217640#M117504</link>
      <description>&lt;P&gt;Create a new table with just the domains in, like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Domains =
DISTINCT (
    UNION ( DISTINCT ( 'Table1'[domain] ), DISTINCT ( 'Table2'[domain] ) )
)
&lt;/LI-CODE&gt;
&lt;P&gt;and link this table in one-to-many relationships to both table 1 and table 2. You can use the column from the domain table in your slicers and visuals.&lt;/P&gt;
&lt;P&gt;You can then tweak your measure to&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MyMeasure =
VAR T2 =
    VALUES ( table2[property] )
RETURN
    IF ( SELECTEDVALUE ( 'table1'[property] ) IN T2, 1, 0 )
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 03 May 2023 10:58:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-results-from-two-different-tables/m-p/3217640#M117504</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-05-03T10:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer with results from two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-results-from-two-different-tables/m-p/3217746#M117510</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="554882" data-lia-user-login="abde139" class="lia-mention lia-mention-user"&gt;abde139&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I'm interested to know how are you planning to&amp;nbsp;color individual&amp;nbsp;values of a slicer. However, I can do that for a table visual for example. Please refer to attached sample file.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Format Measure = 
INT (
    ISEMPTY ( 
        INTERSECT ( 
            VALUES ( Table1[property] ),
            VALUES ( Table2[property] )
        )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 03 May 2023 12:12:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-results-from-two-different-tables/m-p/3217746#M117510</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-03T12:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer with results from two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-results-from-two-different-tables/m-p/3217776#M117511</link>
      <description>&lt;P&gt;Thank you for your kind reply.&lt;BR /&gt;I followed every step, but I still can not distinguish by color the missing properties from table. (I used the background color on the final slicer as shown in the image)&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 12:13:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-results-from-two-different-tables/m-p/3217776#M117511</guid>
      <dc:creator>abde139</dc:creator>
      <dc:date>2023-05-03T12:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer with results from two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-results-from-two-different-tables/m-p/3217817#M117515</link>
      <description>&lt;P&gt;Thank you for the brilliant answer ! as for coloring&amp;nbsp;&lt;SPAN&gt;individual&amp;nbsp;values of a slicer, I was planing to apply the same rule you did on the table's cell ( as shown in the image ). However, It does not work. I suppose from your answer that it is not possible ?&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 12:36:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-results-from-two-different-tables/m-p/3217817#M117515</guid>
      <dc:creator>abde139</dc:creator>
      <dc:date>2023-05-03T12:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer with results from two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-results-from-two-different-tables/m-p/3217822#M117516</link>
      <description>&lt;P&gt;It wouldn't work on the title as there is no selected property. You would need to do something on a row where there is only 1 property.&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 12:41:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-results-from-two-different-tables/m-p/3217822#M117516</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-05-03T12:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer with results from two different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-results-from-two-different-tables/m-p/3217824#M117517</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="554882" data-lia-user-login="abde139" class="lia-mention lia-mention-user"&gt;abde139&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;This applies to whole background of the slicer. I'm not a visual superhero but as far as I know that until&amp;nbsp;this moment, formatting individual&amp;nbsp;slicer values either, text, boarder or background is not yet possible.&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 12:42:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-with-results-from-two-different-tables/m-p/3217824#M117517</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-03T12:42:17Z</dc:date>
    </item>
  </channel>
</rss>

