<?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: Matching a result in a third column based on the selections in two other columns. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3426721#M129841</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;, I have my visuals set up as below. I have disabled the interaction between these 2 slicers so a branch number, and postcode can be selected individually. I placed 2 tables below to display the supporting CSC based on the selected branch/postal sector. I have tried your measure, and it didn't work. Appreciate the response.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2023 15:59:12 GMT</pubDate>
    <dc:creator>Danielle_1</dc:creator>
    <dc:date>2023-09-12T15:59:12Z</dc:date>
    <item>
      <title>Matching a result in a third column based on the selections in two other columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3424840#M129714</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to create a measure where I need to generate a yes or no message to display in a card, based on the selection in 2 columns/slicers, and whether the results in the third column/rows (CSC) match each other or not (based on these 2 seperate selections)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first column (Postcode Sector) has duplicate values and the second column (Branch Number) has many blanks.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to Power BI, so any help is appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 17:52:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3424840#M129714</guid>
      <dc:creator>Danielle_1</dc:creator>
      <dc:date>2023-09-11T17:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Matching a result in a third column based on the selections in two other columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3424856#M129716</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="615333" data-lia-user-login="Danielle_1" class="lia-mention lia-mention-user"&gt;Danielle_1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;IF (&lt;/P&gt;
&lt;P&gt;DISTINCTCOUNT ( 'Table'[CSC] ) = 1,&lt;/P&gt;
&lt;P&gt;"Yes",&lt;/P&gt;
&lt;P&gt;"No"&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 18:08:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3424856#M129716</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-09-11T18:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Matching a result in a third column based on the selections in two other columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3424881#M129718</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response, unfortunately that didn't work. I added the measure to a card, selected CF83 3 for the postcode sector in the first slicer, and then selected branch 2810 in the second slicer (based on the data in the snapshot above), and the result was "Yes" when it should have been No, as "Cardiff" and "Bolton" don't match.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 18:27:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3424881#M129718</guid>
      <dc:creator>Danielle_1</dc:creator>
      <dc:date>2023-09-11T18:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Matching a result in a third column based on the selections in two other columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3424900#M129720</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="615333" data-lia-user-login="Danielle_1" class="lia-mention lia-mention-user"&gt;Danielle_1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apparently I misunderstood the requirement. However, I'm now confused about the setup of your report visuals and slices and how did you setup the interactions between the visuals.&amp;nbsp;&lt;BR /&gt;you my however try&lt;/P&gt;
&lt;P&gt;IF (&lt;/P&gt;
&lt;P&gt;MAXX ( FILTER ( ALL ( 'Table' ), 'Table'[Postcode Selector] = SELECTEDVALUE (&amp;nbsp;&lt;SPAN&gt;'Table'[Postcode Selector] ) ), 'Table'[CSC] )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=&amp;nbsp;MAXX ( FILTER ( ALL ( 'Table' ), 'Table'[Branch Number] = SELECTEDVALUE (&amp;nbsp;'Table'[Branch Number] ) ), 'Table'[CSC] ),&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"Yes",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"No"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;otherwise you might require to to have both slicer column each in a separate disconnected table.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 18:51:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3424900#M129720</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-09-11T18:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Matching a result in a third column based on the selections in two other columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3426721#M129841</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;, I have my visuals set up as below. I have disabled the interaction between these 2 slicers so a branch number, and postcode can be selected individually. I placed 2 tables below to display the supporting CSC based on the selected branch/postal sector. I have tried your measure, and it didn't work. Appreciate the response.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 15:59:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3426721#M129841</guid>
      <dc:creator>Danielle_1</dc:creator>
      <dc:date>2023-09-12T15:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Matching a result in a third column based on the selections in two other columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3427651#M129904</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="615333" data-lia-user-login="Danielle_1" class="lia-mention lia-mention-user"&gt;Danielle_1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This won't work. As I mentioned earlier, you need to have each slicer from a separate disconnected table. You need to create two tables (SlicerTable1 and&amp;nbsp;&lt;SPAN&gt;SlicerTable2). Both of them would be&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ALLNOBLANKROW (&amp;nbsp;'Table'[Postcode Selector] )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;then your measure would be&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=&lt;BR /&gt;IF (&lt;BR /&gt;ISEMPTY (&lt;BR /&gt;EXCEPT (&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;VALUES ( 'Table'[CSC] ),&lt;BR /&gt;TREATAS (&lt;BR /&gt;VALUES ( SlicerTable1[Postcode Selector] ),&lt;BR /&gt;'Table'[Postcode Selector]&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;VALUES ( 'Table'[CSC] ),&lt;BR /&gt;TREATAS (&lt;BR /&gt;VALUES ( SlicerTable2[Postcode Selector] ),&lt;BR /&gt;'Table'[Postcode Selector]&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;"Yes",&lt;BR /&gt;"No"&lt;BR /&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 05:32:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3427651#M129904</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-09-13T05:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Matching a result in a third column based on the selections in two other columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3435925#M130370</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; extremely grateful for your help, this has worked. Thanks so much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 10:51:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3435925#M130370</guid>
      <dc:creator>Danielle_1</dc:creator>
      <dc:date>2023-09-18T10:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Matching a result in a third column based on the selections in two other columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3436221#M130386</link>
      <description>&lt;P&gt;Another question please, how do I display blank or 0 in the card if nothing is selected in the filters? Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 13:08:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3436221#M130386</guid>
      <dc:creator>Danielle_1</dc:creator>
      <dc:date>2023-09-18T13:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Matching a result in a third column based on the selections in two other columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3436720#M130423</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="615333" data-lia-user-login="Danielle_1" class="lia-mention lia-mention-user"&gt;Danielle_1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=&lt;BR /&gt;IF (&lt;BR /&gt;NOT ISFILTERED ( SlicerTable1[Postcode Selector] )&lt;BR /&gt;&amp;amp;&amp;amp; NOT ISFILTERED ( SlicerTable2[Postcode Selector] ),&lt;BR /&gt;"",&lt;BR /&gt;IF (&lt;BR /&gt;ISEMPTY (&lt;BR /&gt;EXCEPT (&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;VALUES ( 'Table'[CSC] ),&lt;BR /&gt;TREATAS (&lt;BR /&gt;VALUES ( SlicerTable1[Postcode Selector] ),&lt;BR /&gt;'Table'[Postcode Selector]&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;VALUES ( 'Table'[CSC] ),&lt;BR /&gt;TREATAS (&lt;BR /&gt;VALUES ( SlicerTable2[Postcode Selector] ),&lt;BR /&gt;'Table'[Postcode Selector]&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;"Yes",&lt;BR /&gt;"No"&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 16:35:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matching-a-result-in-a-third-column-based-on-the-selections-in/m-p/3436720#M130423</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-09-18T16:35:03Z</dc:date>
    </item>
  </channel>
</rss>

