<?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: Showing all locations in a market when a single location is selected in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-all-locations-in-a-market-when-a-single-location-is/m-p/2655738#M78462</link>
    <description>&lt;P&gt;Could you describe more, please. Maybe you have some screenshots?&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2022 13:14:19 GMT</pubDate>
    <dc:creator>technolog</dc:creator>
    <dc:date>2022-07-22T13:14:19Z</dc:date>
    <item>
      <title>Showing all locations in a market when a single location is selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-all-locations-in-a-market-when-a-single-location-is/m-p/2655668#M78457</link>
      <description>&lt;P&gt;I want to return all locations within the same city when a single location within that city is selected. I have the following tables/measures: [Sales], 'Locations'[Location] 'Locations'[City].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if I select the Manhattan Location, since the location is in New York, the visual would show all locations and sales for the branches in New York City.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this makes sense.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 12:45:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-all-locations-in-a-market-when-a-single-location-is/m-p/2655668#M78457</guid>
      <dc:creator>JamesMcEwan</dc:creator>
      <dc:date>2022-07-22T12:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Showing all locations in a market when a single location is selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-all-locations-in-a-market-when-a-single-location-is/m-p/2655738#M78462</link>
      <description>&lt;P&gt;Could you describe more, please. Maybe you have some screenshots?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 13:14:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-all-locations-in-a-market-when-a-single-location-is/m-p/2655738#M78462</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-07-22T13:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Showing all locations in a market when a single location is selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-all-locations-in-a-market-when-a-single-location-is/m-p/2655815#M78471</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;I actually believe I was able to solve this. I created an calculated table based on the Locations table and named it MarketLocations, then created the following measure:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Market-City = 
VAR _SelectedMarket =
    CALCULATETABLE (
        VALUES ( 'Locations'[City] ),
        FILTER (
            ALL ( 'Locations' ),
            'Locations'[Location] IN VALUES ( 'MarketLocation'[Location] )
        )
    )
RETURN
    CALCULATE (
        [Sales],
        FILTER ( 'Locations', 'Locations'[City] IN _SelectedMarket )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 13:43:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Showing-all-locations-in-a-market-when-a-single-location-is/m-p/2655815#M78471</guid>
      <dc:creator>JamesMcEwan</dc:creator>
      <dc:date>2022-07-22T13:43:10Z</dc:date>
    </item>
  </channel>
</rss>

