<?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: Streaming Dataset - Latest value for each category in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Streaming-Dataset-Latest-value-for-each-category/m-p/721553#M19735</link>
    <description>&lt;P&gt;what was the formatting issue?&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2019 18:28:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-06-21T18:28:36Z</dc:date>
    <item>
      <title>Streaming Dataset - Latest value for each category</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Streaming-Dataset-Latest-value-for-each-category/m-p/257929#M7956</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a streaming dataset&amp;nbsp;(e.g. real time temperature data) in Power BI via Stream Analytics. I have&amp;nbsp;a category field called RoomName&amp;nbsp;in that dataset (e.g. kitchen, bedroom) which allows me to see real-time temperature for each room. I want to see the&amp;nbsp;latest temperature value for each room on a real-time basis in the following format:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Room&lt;/TD&gt;&lt;TD&gt;Temperature&lt;/TD&gt;&lt;TD&gt;Time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Kitchen&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;20/09/2017 17:12:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bedroom&lt;/TD&gt;&lt;TD&gt;23&lt;/TD&gt;&lt;TD&gt;20/09/2017 17:12:29&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Lounge&lt;/TD&gt;&lt;TD&gt;24&lt;/TD&gt;&lt;TD&gt;20/09/2017 17:12:28&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help how can I build the above data from the dataset? I have tried TOP 1 filtering based on the temperature value by latest time but that only gives me latest temperature value which in the above case is Kitchen temperature. I don't know how can I break that down by category. Any help will be appreciated. Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2017 15:27:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Streaming-Dataset-Latest-value-for-each-category/m-p/257929#M7956</guid>
      <dc:creator>shb</dc:creator>
      <dc:date>2017-09-24T15:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Streaming Dataset - Latest value for each category</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Streaming-Dataset-Latest-value-for-each-category/m-p/258185#M7964</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/42260"&gt;@shb&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a streaming dataset&amp;nbsp;(e.g. real time temperature data) in Power BI via Stream Analytics. I have&amp;nbsp;a category field called RoomName&amp;nbsp;in that dataset (e.g. kitchen, bedroom) which allows me to see real-time temperature for each room. I want to see the&amp;nbsp;latest temperature value for each room on a real-time basis in the following format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;Room&lt;/TD&gt;
&lt;TD&gt;Temperature&lt;/TD&gt;
&lt;TD&gt;Time&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Kitchen&lt;/TD&gt;
&lt;TD&gt;25&lt;/TD&gt;
&lt;TD&gt;20/09/2017 17:12:30&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Bedroom&lt;/TD&gt;
&lt;TD&gt;23&lt;/TD&gt;
&lt;TD&gt;20/09/2017 17:12:29&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Lounge&lt;/TD&gt;
&lt;TD&gt;24&lt;/TD&gt;
&lt;TD&gt;20/09/2017 17:12:28&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please help how can I build the above data from the dataset? I have tried TOP 1 filtering based on the temperature value by latest time but that only gives me latest temperature value which in the above case is Kitchen temperature. I don't know how can I break that down by category. Any help will be appreciated. Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/42260"&gt;@shb&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;So you're trying to create a report in Power BI desktop connecting to a streaminddataset? If so, create two measures instead of using the Temperature and time column.&lt;/P&gt;
&lt;PRE&gt;latest Time = MAX(RealTimeData[Time])&lt;BR /&gt;&lt;BR /&gt;Latest Temperature = MAXX(FILTER(RealTimeData,RealTimeData[Time]=[latest Time]),RealTimeData[Temperature])&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 497px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/61757i9995F7D9DE1BB072/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 07:24:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Streaming-Dataset-Latest-value-for-each-category/m-p/258185#M7964</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-09-25T07:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Streaming Dataset - Latest value for each category</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Streaming-Dataset-Latest-value-for-each-category/m-p/258456#M7977</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;, thanks a lot for your reply, looks like that may solve the problem however the following condition does not seem to be working for me as it is returning all the data instead of just the latest data. If I replace [latest time] with the static date value, the filtering does seem to work though. I have tried converting the [latest time] to date format but that didn't help either. Is there anything else I can try? Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FILTER(RealTimeData,RealTimeData[Time]=[latest Time])&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 12:35:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Streaming-Dataset-Latest-value-for-each-category/m-p/258456#M7977</guid>
      <dc:creator>shb</dc:creator>
      <dc:date>2017-09-25T12:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Streaming Dataset - Latest value for each category</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Streaming-Dataset-Latest-value-for-each-category/m-p/258487#M7979</link>
      <description>&lt;P&gt;Apologies, I believe it's due to the formatting of the datetime values that is different. I need the new measure showing date in MM/dd/yy hh:mm:ss tt format while the date in the dataset is&amp;nbsp;&lt;SPAN&gt;dd/MM/yy hh:mm:ss tt. I tried to use Format function on [Latest Time] measure [Latest Time] =&amp;nbsp; Format (MAX([Latest Time]), "MM/dd/yy hh:mm:ss tt") but that is not working&amp;nbsp;as I get error.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 13:07:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Streaming-Dataset-Latest-value-for-each-category/m-p/258487#M7979</guid>
      <dc:creator>shb</dc:creator>
      <dc:date>2017-09-25T13:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Streaming Dataset - Latest value for each category</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Streaming-Dataset-Latest-value-for-each-category/m-p/384007#M11406</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you ever resolve this issue? I think I figured out the date format part but it always shows the first entry, not the last...&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 18:22:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Streaming-Dataset-Latest-value-for-each-category/m-p/384007#M11406</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-26T18:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Streaming Dataset - Latest value for each category</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Streaming-Dataset-Latest-value-for-each-category/m-p/721553#M19735</link>
      <description>&lt;P&gt;what was the formatting issue?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 18:28:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Streaming-Dataset-Latest-value-for-each-category/m-p/721553#M19735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-21T18:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Streaming Dataset - Latest value for each category</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Streaming-Dataset-Latest-value-for-each-category/m-p/722969#M19756</link>
      <description>&lt;P&gt;Anyone still stuggling with this dont stream millseconds in your jason file power bi seems to have an issue with filtering dates with this in.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 21:36:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Streaming-Dataset-Latest-value-for-each-category/m-p/722969#M19756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-24T21:36:48Z</dc:date>
    </item>
  </channel>
</rss>

