<?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: DirectQuery latitude and longitude for map in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-latitude-and-longitude-for-map/m-p/4685243#M179450</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/366412" target="_blank" rel="noopener"&gt;@oktober42&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;consider giving a KUDOS. Feel free to reach out if you need further assistance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dinesh&lt;/P&gt;</description>
    <pubDate>Thu, 08 May 2025 15:18:00 GMT</pubDate>
    <dc:creator>v-dineshya</dc:creator>
    <dc:date>2025-05-08T15:18:00Z</dc:date>
    <item>
      <title>DirectQuery latitude and longitude for map</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-latitude-and-longitude-for-map/m-p/4666956#M178759</link>
      <description>&lt;P&gt;I'm working on a project where we have an MQTT GPS locator on our site. We want to display that locator's current location. We are sending the sensor's data to a Streaming Dataset. I can see and create a table with all of the updates (I have a timestamp and an "ID" where I'm evaluating the time in UNIX format to give a unique identifier). I want to show the current location, therefore the most recent snapshot. I keep getting stuck evaluating the last row due to DirectQuery restrictions. I finally got calculate(max...)) and lookupvalue to give me a single latitude and longitude, but when I put those into the Map visual I get "To display latitude and longitude pairs, set the aggregate for Latitude and Longitude to Don't summarize" which I can't do with a measure. I was worried Map was aggregating the values anyway (dispite there being only one value), but I can't make a measure that it will take as a Location. Feeling stuck on something seemingly simple!!!!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 14:03:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-latitude-and-longitude-for-map/m-p/4666956#M178759</guid>
      <dc:creator>oktober42</dc:creator>
      <dc:date>2025-04-24T14:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: DirectQuery latitude and longitude for map</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-latitude-and-longitude-for-map/m-p/4667262#M178778</link>
      <description>&lt;P&gt;Use a Calculated Column (instead of a Measure):&lt;/P&gt;&lt;P&gt;Measures are usually aggregated in visuals, which is why you're seeing the error. But if you create a calculated column that captures the latest latitude and longitude, you can ensure that it's not aggregated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's how you can create a calculated column that grabs the most recent location:&lt;/P&gt;&lt;P&gt;Latest Latitude =&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;FIRSTNONBLANK(YourTable[Latitude], YourTable[Timestamp]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;FILTER(YourTable, YourTable[Timestamp] = MAX(YourTable[Timestamp]))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Latest Longitude =&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;FIRSTNONBLANK(YourTable[Longitude], YourTable[Timestamp]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;FILTER(YourTable, YourTable[Timestamp] = MAX(YourTable[Timestamp]))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After creating the calculated columns, add them to the Latitude and Longitude fields in the Map visual.&lt;/P&gt;&lt;P&gt;For the aggregation, ensure both are set to Don't summarize in the Fields pane. You should now have a single pair of latitude/longitude displayed.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 16:53:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-latitude-and-longitude-for-map/m-p/4667262#M178778</guid>
      <dc:creator>Amar_Kumar</dc:creator>
      <dc:date>2025-04-24T16:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: DirectQuery latitude and longitude for map</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-latitude-and-longitude-for-map/m-p/4670643#M178901</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="366412" data-lia-user-login="oktober42" class="lia-mention lia-mention-user"&gt;oktober42&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for reaching out to the Microsoft Community Forum.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to create a table that filters to the most recent row without relying on measures inside the visual.&lt;/P&gt;
&lt;P&gt;please try below options:&lt;/P&gt;
&lt;P&gt;Option 1: Use a Calculated Table: If your dataset isn't pure streaming, but rather a hybrid with some static tables, you could create a calculated table that only holds the latest row:&lt;/P&gt;
&lt;P&gt;LatestLocation = &lt;BR /&gt;TOPN(&lt;BR /&gt;1,&lt;BR /&gt;'YourStreamingTable',&lt;BR /&gt;'YourStreamingTable'[Timestamp],&lt;BR /&gt;DESC&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;Then you can bind Latitude and Longitude as columns. On the map, they will not need aggregation, and "Don't summarize" will be available. BUT if it's a pure Streaming Dataset, you can't create calculated tables directly. So you may not be able to use this.&lt;/P&gt;
&lt;P&gt;Option 2: Create a Flag Column and Filter:&lt;BR /&gt;Create a calculated column that flags the latest row:&lt;/P&gt;
&lt;P&gt;IsLatest = &lt;BR /&gt;IF(&lt;BR /&gt;'YourStreamingTable'[Timestamp] = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;MAX('YourStreamingTable'[Timestamp]),&lt;BR /&gt;ALL('YourStreamingTable')&lt;BR /&gt;),&lt;BR /&gt;1,&lt;BR /&gt;0&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;Then in the visual, filter IsLatest = 1. Use the columns directly: Latitude, Longitude — they will be columns, not measures. Set both to "Don't summarize". Now you’ll only show the latest location.&lt;/P&gt;
&lt;P&gt;Note: Depending on data volume and DirectQuery latency, the IsLatest column might sometimes lag slightly behind the data.&lt;/P&gt;
&lt;P&gt;Option 3: Use a Card for Display Instead: If you really can’t get around it and maps won't cooperate, as a fallback:&lt;BR /&gt;Display current Lat/Lon in cards. Update the map visual to show all recent points, but highlight the latest one differently.&lt;/P&gt;
&lt;P&gt;Note: Maps are special in Power BI. They expect "Latitude" and "Longitude" fields to be static per row. When you use a measure, Power BI can't understand how to plot it row-by-row. That's why "Don't summarize" is grayed out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 10:45:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-latitude-and-longitude-for-map/m-p/4670643#M178901</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-04-28T10:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: DirectQuery latitude and longitude for map</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-latitude-and-longitude-for-map/m-p/4677071#M179122</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="366412" data-lia-user-login="oktober42" class="lia-mention lia-mention-user"&gt;oktober42&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;consider giving a KUDOS. Feel free to reach out if you need further assistance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dinesh&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 08:05:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-latitude-and-longitude-for-map/m-p/4677071#M179122</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-05-02T08:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: DirectQuery latitude and longitude for map</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-latitude-and-longitude-for-map/m-p/4680577#M179278</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/366412" target="_blank"&gt;@oktober42&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;consider giving a KUDOS. Feel free to reach out if you need further assistance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dinesh&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 14:35:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-latitude-and-longitude-for-map/m-p/4680577#M179278</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-05-05T14:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: DirectQuery latitude and longitude for map</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-latitude-and-longitude-for-map/m-p/4685243#M179450</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/366412" target="_blank" rel="noopener"&gt;@oktober42&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;consider giving a KUDOS. Feel free to reach out if you need further assistance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dinesh&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 15:18:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-latitude-and-longitude-for-map/m-p/4685243#M179450</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-05-08T15:18:00Z</dc:date>
    </item>
  </channel>
</rss>

