Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17890

Only displaying most recent data in a push dataset

$
0
0

We're currently trialing Power Bi as a replacement for Grafana dashboards and an internal reporting system so we can consolidate them into the same system but we've hit a road block. 

 

We'd like to be able to look back on our dashboard datasets at any given time in the past and be able to see what was going on at that moment. Grafana seemlessly updates the data since it just reaches out and queries it's data source\SQL Server and replaces the data. We've created a service in powershell that post data via api to a 'push' dataset. 

 

I'm about to push data and get it to display however I'm having an issue filtering only the newest data to show on the Dashboard as it seems to sum everything. I've found I can clear the dataset and it shows the table with just the newest data however that causes the dashboard to go blank for that tile and flicker for a second. I've included the simple example below that I'm trying to push with the datatypes-

 

ServerName: String

ServerValue: Int64

RequestDateTime: DateTime

 

Post request looks like 

{"rows": [

{ "ServerName": "server1", "ServerValue": "523", "RequestDateTime": "CurrentDateTimeHere"},

{ "ServerName": "server2", "ServerValue": "123", "RequestDateTime": "CurrentDateTimeHere"},

{ "ServerName": "server3", "ServerValue": "963", "RequestDateTime": "CurrentDateTimeHere"}

]}

 

All the RequestDateTime's are the same each post as they are pulled from a predefined variable prior to each request so the newest data always has the same DateTime value and I'd very much like to be able to only show whatever rows have the Max DateTime in the table.

 

I've been spinning my wheels on this for the past 3-4 hours. Does anyone have any suggestions?

 


Viewing all articles
Browse latest Browse all 17890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>