Top N not working with Stream Analytics job - powerbi

I am new to Power BI and Stream Analytics job.
I am trying to get the latest/recent value in Power BI based on timestamp. I Pushed the data from Stream Analytics job to Power BI dataset. I am receiving all the data successfully.
Now for one particular instance I want to show latest value from Stream Analytics job. I used simple matrix/Table to display the data. It display the data correctly. However when I try to use the Top N with N=1 it returns null. The same thing used to work correctly when I pulled the data from Azure Tables.
I just want to display the recent data (single value) from Steam to Power BI. What can I do to resolve this issue?
Regards,
AJ

Related

Power BI Guage update real-time with the latest column value using streaming data set

I have a power BI streaming dataset which continuously update from a service. I want to create a real time updating guage whenever my API sends new data to the streaming data set. My problem is the guage I put shows the Sum of the column I used for "Value". It doesn't show the last data. Is there any way to show the latest column value without showing the Sum?

Can I freeze the data I have in a PowerBI Dataset to use it offline?

I have a power BI dataset that takes its data from a software made by the IT team in my organization.
I was wondering if it was possible for me to "freeze" all the data in the PBI dataset (like, taking a picture of the data for exemple today) and use this dataset for further analysis (I have another power BI file linked to that Power BI dataset). I know the data won't refresh, but it's not important for what I need to do, as I only need to have the past info.
The reason why I need to know if that's possible is that I'm going oversea for one month and won't have access to the original dataset. Downloading all the data into one excel is impossible as it is way to big.
thanks
It sounds like you're after some sort of snapshotting functionality
If you just wanted to keep the file as is, then you can download the pbix and just not refresh it provided its in import mode.
However one approach you could take if you want to continue doing development without worrying about accidentally refreshing is to use a power bi dataflow
You could copy your power query queries to a dataflow. Refresh them all as at today. Then don't refresh the dataflow anymore
You can then point your power bi dataset to your dataflow
https://learn.microsoft.com/en-us/power-bi/transform-model/dataflows/dataflows-create
That way if you wanted to do further transformation of data, you wouldnt be getting new data from the data source (so long as you dont refresh the dataflow)

Which data is stored in Power BI - the one after query or the one after modelling?

In Power BI first we get source data. And then we add multiple query steps to filter data/remove column/etc. Then we add relations and model the data.
We can have calculated columns that are stored in the data. And measures that are not stored in the data but calculated on the fly.
Which data is stored in Power BI - the one after query or the one after modelling?
Power BI has 3 connection types for data access. They are import, direct query and live connections.
If we use import method as a connection type, data imported into Power bi file using Power BI desktop. So all the data always stays in disk. When query or refresh, data stays in computer memory.This data we can use to query and modeling. After work, we save the Power BI file it will save as file with .pbix extension. Data compressed and stored inside this file.
in direct query mode , data stays in remote location and we can connect data. each time we refresh or make change in slicer request goes to data source and bring back data to power bi. In this method, we can't access data but we can create data model.
live connection is another method. It only support for few data sources. In this method, data not stored in computer memory and can't create data model using Power BI desktop.
Power BI is very well documented. Many of the questions you've recently asked are answered in that resource, so please take a look. I get the feeling that you are using this community because you don't want to read the manual. I strongly suggest you take a look at the documentation, because everything we write in answer to your questions has already been written and documented, and SO is not meant to be a shadow user guide for well documented systems.
Depending on the data source you use in Power BI Desktop, Power BI supports query folding, which will do as much processing of the data at the source (for example SQL Server).
If query folding is not possible because the source does not support it, then the source data is loaded before the query steps are applied.
Read more about query folding here: https://learn.microsoft.com/en-us/power-bi/guidance/power-query-folding
When you perform additional modelling after the Power Queries are loaded, i.e. creating tables with DAX, adding columns, etc., these will be performed when the PBIX file is published to the Power BI service, and they will be performed each time the data is refreshed with the data gateway.

Import Azure Time Series Insights data into Power BI

We were implementing the Azure Time Series insights(TSI) for the data streaming through IoT hub and wanting to connect to Power BI for advanced visualization. There is a provision to build a custom query to connect to Power BI from Azure TSI but i guess there is a limitation of fetching a dataset for specific time frame and only for the time series ID selected for the view.
Is there a way we can get the latest data in Power BI as and when the data refreshes in Azure TSI and for additional number of time series ID which were not selected while building the query.
Cheers,
Amit
If you generate a query from TSI to feed into Power BI, you can manually edit it to include the TSIDs you want to see. If you set the "isSearchSpanRelative" parameter to true, the data should refresh in Power BI as it comes into TSI.

PowerBI real time data without Stream Analytics

How can I add live data to a PowerBI dashboard when I'm not using Azure Stream Analytics to passthrough messages? The refresh rates by default do not seem to support this.
Stream Analytics output to Power BI is just a layer on top of this Add Rows Power BI REST API plus a few related APIs like creating a dataset. You could do that yourself in your own code without Stream Analytics as shown in these samples. This still achieves the real-time animating tiles in Power BI.
The alternative for Stream Analytics would be to use the PowerBI API's to add row to a dataset.
Take a look at this sample to get started
Note: In the Free tier you can update 10k rows per hour.
Only when you use Azure stream analytics, your Power BI dashboard is auto-refresh