<?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: Merge 2 selectedvalues from different tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Merge-2-selectedvalues-from-different-tables/m-p/2814382#M89185</link>
    <description>&lt;P&gt;Hey, thanks for the response.&lt;BR /&gt;&lt;BR /&gt;I filled in your measure with the revelant data, but unfortunately it doesn't seem to work. The 'Selections =/= blank' filter doesn't remove any of the other addresses - or any at all, for that matter. It does 'notice' the 2 selections, but I'm not sure if it actually contains those selections, based on this table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 15:25:21 GMT</pubDate>
    <dc:creator>robertvdleeuw</dc:creator>
    <dc:date>2022-10-03T15:25:21Z</dc:date>
    <item>
      <title>Merge 2 selectedvalues from different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Merge-2-selectedvalues-from-different-tables/m-p/2813959#M89158</link>
      <description>&lt;P&gt;I have a dataset containing sales of different stores, and am creating a report in which 2 stores can be selected and compared.&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;The 'Current' and 'Comparative' slicers at the top left operate on 2 copies of the datatable containing all of the addresses, with no relations to any other tables. This way they don't interfere with one another.&lt;BR /&gt;&lt;BR /&gt;What I want to do is to get both addresses showing in the map at the bottom left. I can get it to display one at a time easily, using the related zip code. But getting them both to show up has been quite a hassle so far, especially because merging the selectedvalues is harder due to the lack of relation between the tables.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there a way to set up a measure containing both addresses, coming from these 2 selectedvalues?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 12:40:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Merge-2-selectedvalues-from-different-tables/m-p/2813959#M89158</guid>
      <dc:creator>robertvdleeuw</dc:creator>
      <dc:date>2022-10-03T12:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Merge 2 selectedvalues from different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Merge-2-selectedvalues-from-different-tables/m-p/2814239#M89172</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="435822" data-lia-user-login="robertvdleeuw" class="lia-mention lia-mention-user"&gt;robertvdleeuw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To be honest I've never used the map visual therefore not sure how does it behave. I will assume it behaves the same way as a table.&amp;nbsp;&lt;BR /&gt;Create a table that contains all the locations and use it to build the map.&amp;nbsp;&lt;BR /&gt;create a filter measure following this template:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=
CALCULATE (
    COUNTROWS ( Location),
    TREATAS (
        {
            SELECTEDVALUE ( Current[Current] ),
            SELECTEDVALUE ( Comparative[Comparative] )
        },
        Location[Location]
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;place this measure in the filter pane of map, select "is not blank" and apply the filter.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 14:14:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Merge-2-selectedvalues-from-different-tables/m-p/2814239#M89172</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-03T14:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Merge 2 selectedvalues from different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Merge-2-selectedvalues-from-different-tables/m-p/2814382#M89185</link>
      <description>&lt;P&gt;Hey, thanks for the response.&lt;BR /&gt;&lt;BR /&gt;I filled in your measure with the revelant data, but unfortunately it doesn't seem to work. The 'Selections =/= blank' filter doesn't remove any of the other addresses - or any at all, for that matter. It does 'notice' the 2 selections, but I'm not sure if it actually contains those selections, based on this table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 15:25:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Merge-2-selectedvalues-from-different-tables/m-p/2814382#M89185</guid>
      <dc:creator>robertvdleeuw</dc:creator>
      <dc:date>2022-10-03T15:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Merge 2 selectedvalues from different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Merge-2-selectedvalues-from-different-tables/m-p/2814481#M89196</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="435822" data-lia-user-login="robertvdleeuw" class="lia-mention lia-mention-user"&gt;robertvdleeuw&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I did some trials. This should work&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=
CALCULATE (
    SELECTEDVALUE ( Location[Location] ),
    TREATAS (
        {
            SELECTEDVALUE ( Current[Current] ),
            SELECTEDVALUE ( Comparative[Comparative] )
        },
        Location[Location]
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;Please place this measure in the filter pane and select "&lt;EM&gt;is not blank"&lt;/EM&gt; and apply the measure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 16:02:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Merge-2-selectedvalues-from-different-tables/m-p/2814481#M89196</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-03T16:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Merge 2 selectedvalues from different tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Merge-2-selectedvalues-from-different-tables/m-p/2817573#M89390</link>
      <description>&lt;P&gt;Hey, thanks again for the help. I tried your new solution, but now 'Selections' is blank.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the important tables regarding this question, if that helps:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Stores&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current/Comparative&amp;nbsp;&lt;/STRONG&gt;(They're identical)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you need anything else, just let me know.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 16:56:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Merge-2-selectedvalues-from-different-tables/m-p/2817573#M89390</guid>
      <dc:creator>robertvdleeuw</dc:creator>
      <dc:date>2022-10-04T16:56:24Z</dc:date>
    </item>
  </channel>
</rss>

