<?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 Display Stores Within Radius for Multiple ZIP Codes in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Display-Stores-Within-Radius-for-Multiple-ZIP-Codes/m-p/5141177#M13109</link>
    <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a Power BI report&amp;nbsp;using Azure Maps.&lt;/P&gt;&lt;P&gt;I have a&amp;nbsp;STORE&amp;nbsp;table that contains:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Store name&lt;/LI&gt;&lt;LI&gt;Address&lt;/LI&gt;&lt;LI&gt;Latitude&lt;/LI&gt;&lt;LI&gt;Longitude&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I also have a ZIPCODE&amp;nbsp;table that contains all valid ZIP codes along with their corresponding coordinates.&lt;/P&gt;&lt;P&gt;In the report, I created an input slicer that allows users to give&amp;nbsp;multiple ZIP codes.&lt;/P&gt;&lt;P&gt;My requirement is:&lt;BR /&gt;For each selected ZIP code, I want to display all stores within a given radius &lt;STRONG&gt;r&lt;/STRONG&gt;&amp;nbsp;on the Azure Map visual.&lt;/P&gt;&lt;P&gt;So essentially:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The user inputs one or more ZIP codes in the slicer.&lt;/LI&gt;&lt;LI&gt;For each selected ZIP code, the system should calculate distances between that ZIP code’s coordinates and all store locations.&lt;/LI&gt;&lt;LI&gt;All stores within radius&amp;nbsp;r&amp;nbsp;should be displayed on the map.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I’m relatively new to Microsoft Fabric, so any suggestions or assistance would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Mar 2026 13:38:01 GMT</pubDate>
    <dc:creator>SilentKernel</dc:creator>
    <dc:date>2026-03-30T13:38:01Z</dc:date>
    <item>
      <title>Display Stores Within Radius for Multiple ZIP Codes</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Display-Stores-Within-Radius-for-Multiple-ZIP-Codes/m-p/5141177#M13109</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a Power BI report&amp;nbsp;using Azure Maps.&lt;/P&gt;&lt;P&gt;I have a&amp;nbsp;STORE&amp;nbsp;table that contains:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Store name&lt;/LI&gt;&lt;LI&gt;Address&lt;/LI&gt;&lt;LI&gt;Latitude&lt;/LI&gt;&lt;LI&gt;Longitude&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I also have a ZIPCODE&amp;nbsp;table that contains all valid ZIP codes along with their corresponding coordinates.&lt;/P&gt;&lt;P&gt;In the report, I created an input slicer that allows users to give&amp;nbsp;multiple ZIP codes.&lt;/P&gt;&lt;P&gt;My requirement is:&lt;BR /&gt;For each selected ZIP code, I want to display all stores within a given radius &lt;STRONG&gt;r&lt;/STRONG&gt;&amp;nbsp;on the Azure Map visual.&lt;/P&gt;&lt;P&gt;So essentially:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The user inputs one or more ZIP codes in the slicer.&lt;/LI&gt;&lt;LI&gt;For each selected ZIP code, the system should calculate distances between that ZIP code’s coordinates and all store locations.&lt;/LI&gt;&lt;LI&gt;All stores within radius&amp;nbsp;r&amp;nbsp;should be displayed on the map.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I’m relatively new to Microsoft Fabric, so any suggestions or assistance would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 13:38:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Display-Stores-Within-Radius-for-Multiple-ZIP-Codes/m-p/5141177#M13109</guid>
      <dc:creator>SilentKernel</dc:creator>
      <dc:date>2026-03-30T13:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Display Stores Within Radius for Multiple ZIP Codes</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Display-Stores-Within-Radius-for-Multiple-ZIP-Codes/m-p/5141457#M13111</link>
      <description>&lt;P&gt;It's technically trivial (using the Haversine formula) but it has limited value.&amp;nbsp; The center of a ZIP code may not have any business meaning, and the Great Circle distance may not have a business meaning either.&amp;nbsp; What you would need is a real time driving distance/time route engine connection - and that becomes expensive quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What problem are you trying to solve with that visual?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 22:00:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Display-Stores-Within-Radius-for-Multiple-ZIP-Codes/m-p/5141457#M13111</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2026-03-30T22:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Display Stores Within Radius for Multiple ZIP Codes</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Display-Stores-Within-Radius-for-Multiple-ZIP-Codes/m-p/5141747#M13112</link>
      <description>&lt;DIV&gt;I’ve already used the Haversine formula to calculate the distance between a single coordinate and a set of stores and I can successfully display all stores within a given radius &lt;EM&gt;r&lt;/EM&gt;. However, I’m struggling to extend this logic to handle multiple user‑entered ZIP codes.&lt;DIV&gt;My goal is to identify all potential stores located within a radius &lt;EM&gt;r&amp;nbsp;&lt;/EM&gt;of each user‑provided ZIP code.&lt;/DIV&gt;How can I efficiently compute this for multiple ZIP code inputs?&lt;/DIV&gt;</description>
      <pubDate>Tue, 31 Mar 2026 10:02:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Display-Stores-Within-Radius-for-Multiple-ZIP-Codes/m-p/5141747#M13112</guid>
      <dc:creator>SilentKernel</dc:creator>
      <dc:date>2026-03-31T10:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Display Stores Within Radius for Multiple ZIP Codes</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Display-Stores-Within-Radius-for-Multiple-ZIP-Codes/m-p/5141760#M13114</link>
      <description>&lt;DIV&gt;I’ve already used the Haversine formula to calculate the distance between a single coordinate and a set of stores and I can successfully display all stores within a given radius &lt;EM&gt;r&lt;/EM&gt;. However, I’m struggling to extend this logic to handle multiple user‑entered ZIP codes.&amp;nbsp;&lt;DIV&gt;My goal is to identify all potential stores located within a radius &lt;EM&gt;r&lt;/EM&gt; of each user‑provided ZIP code.&amp;nbsp;&lt;DIV&gt;How can I efficiently compute this for multiple ZIP code inputs?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 31 Mar 2026 10:12:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Display-Stores-Within-Radius-for-Multiple-ZIP-Codes/m-p/5141760#M13114</guid>
      <dc:creator>SilentKernel</dc:creator>
      <dc:date>2026-03-31T10:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Display Stores Within Radius for Multiple ZIP Codes</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Display-Stores-Within-Radius-for-Multiple-ZIP-Codes/m-p/5142222#M13115</link>
      <description>&lt;P&gt;You create a CROSSJOIN between the stores and the ZIP codes, and then calculate the Haversine for each of the items in the cartesian product.&amp;nbsp; You can also use GENERATE for the same purpose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will want to limit that to the filter context (for example what is visible on the map) to avoid computational overload.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 22:59:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Display-Stores-Within-Radius-for-Multiple-ZIP-Codes/m-p/5142222#M13115</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2026-03-31T22:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Display Stores Within Radius for Multiple ZIP Codes</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Display-Stores-Within-Radius-for-Multiple-ZIP-Codes/m-p/5142441#M13118</link>
      <description>&lt;P&gt;I tried using both CROSSJOIN and GENERATE, but it keeps throwing the following error:&lt;BR /&gt;"&lt;STRONG&gt;You cannot use a calculated table to reference a Direct Lake table. The model includes a calculated table, which is not supported. Please remove the calculated table.&lt;/STRONG&gt;"&lt;BR /&gt;Is there any workaround for this limitation?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2026 08:42:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Display-Stores-Within-Radius-for-Multiple-ZIP-Codes/m-p/5142441#M13118</guid>
      <dc:creator>SilentKernel</dc:creator>
      <dc:date>2026-04-01T08:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Display Stores Within Radius for Multiple ZIP Codes</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Display-Stores-Within-Radius-for-Multiple-ZIP-Codes/m-p/5142629#M13119</link>
      <description>&lt;P&gt;Try doing the processing in a measure rather than a calculated table.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2026 17:12:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Display-Stores-Within-Radius-for-Multiple-ZIP-Codes/m-p/5142629#M13119</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2026-04-01T17:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Display Stores Within Radius for Multiple ZIP Codes</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Display-Stores-Within-Radius-for-Multiple-ZIP-Codes/m-p/5144421#M13121</link>
      <description>&lt;DIV&gt;I’ve created the following measure to calculate the Haversine distance between locations in the stores&amp;nbsp;table and the selected ZIP codes from the zipcode table. However, when I display this measure in a table or matrix visual, the distances shown are incorrect. Additionally, my requirement is to display the calculated distances both on &lt;STRONG&gt;Azure Maps&lt;/STRONG&gt; and in a &lt;STRONG&gt;table visual&lt;/STRONG&gt; for &lt;STRONG&gt;all user‑selected ZIP codes &lt;/STRONG&gt;in my report. Could you explain how I can achieve this behavior properly?&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;DistanceToPLZ =&lt;BR /&gt;MINX(&lt;BR /&gt;CROSSJOIN(&lt;BR /&gt;stores,&lt;BR /&gt;SELECTCOLUMNS(&lt;BR /&gt;ALLSELECTED(zipcode),&lt;BR /&gt;"GeoLat", zipcode[lat],&lt;BR /&gt;"GeoLon", zipcode[long]&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;VAR Lat1 = stores[Latitude]&lt;BR /&gt;VAR Lon1 = stores[Longitude]&lt;BR /&gt;VAR Lat2 = [GeoLat]&lt;BR /&gt;VAR Lon2 = [GeoLon]&lt;/P&gt;&lt;P&gt;VAR R = 6371&lt;/P&gt;&lt;P&gt;VAR dLat = RADIANS(Lat2 - Lat1)&lt;BR /&gt;VAR dLon = RADIANS(Lon2 - Lon1)&lt;/P&gt;&lt;P&gt;VAR a =&lt;BR /&gt;SIN(dLat/2)^2 +&lt;BR /&gt;COS(RADIANS(Lat1)) *&lt;BR /&gt;COS(RADIANS(Lat2)) *&lt;BR /&gt;SIN(dLon/2)^2&lt;/P&gt;&lt;P&gt;VAR c = 2 * ATAN(DIVIDE(SQRT(a),SQRT(1-a)))&lt;/P&gt;&lt;P&gt;RETURN R * c&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Apr 2026 07:24:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Display-Stores-Within-Radius-for-Multiple-ZIP-Codes/m-p/5144421#M13121</guid>
      <dc:creator>SilentKernel</dc:creator>
      <dc:date>2026-04-07T07:24:58Z</dc:date>
    </item>
  </channel>
</rss>

