Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
walshgarry1
Frequent Visitor

Real Time Dashboard data comparison

Hello Community I'm hoping someone can help me.

I have designed a dashboard that uses a streaming dataset (JSON) and shows metric data for an individual. I can show real time current speed over time on a line graph along with some other metrics. The dashboard works well but what i would like to do is add a second players data to the JSON string and do a comparisson between the two.

This is where i get stuck. Each player has an individual device ID and i'm not sure how to add more than one ID to the dashboard.

Below is a picture of the working dashboard for one player and the JSON output from power bi.

Dashboard.JPGStreaming Dataset.png

Here are the two JSON rows and ID's I want to feed in realtime and compare.

 

{"Id":"0555","TDist":4656.7812,"CurSp":0.17777792,"Impacts":34,"Sprints":21,"T":"2020-03-07T17:57:36.3"}
{"Id":"8a92","TDist":4136.4614,"CurSp":0.013888899,"Impacts":16,"Sprints":7,"T":"2020-03-07T17:57:36.3"}

 

Can someone please help? I'm really hoping this can be done.

4 REPLIES 4
az38
Community Champion
Community Champion

@walshgarry1  hi

how do you want to visualize it on card visual? it should be average or max or what in [Total Distance] card for example?

to add second line to chart add [Id] field as legend


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Ideally i would like to show a current speed over tme for two players on the same line chart.

I would also like to My issue is how do I add a second ID to my dataset?

My JSON string has individual ID's for each player but when I create my power bi dataset json code i don't know how to define new cards for the second player. 

Streaming Dataset.png

I really want to see on the same dashboard cards for each player: 

Player 1 - Current Speed, Total Distance, Impacts, Sprints

Player 2 - Current Speed, Total Distance, Impacts, Sprints

Then a line chart showing current speed over time for both players id's something like this:

Player Comaprison.JPG

Do you think this is possible?

 

Hi @walshgarry1 ,

 

Please create a line chart like that to work on it.

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hello and than you for the feedback.

By modifying the code that is sending the JSON data to Power Bi I have managed to succesfully add a second players ID and current speed to the line graph shown below. This has solved my first issue.

The next issue I have is that I am not able to define the individual cards for the second player.

As you can see from the diagram I have added cards for a second player 2 but they are just coming up add duplicates of player 1.

Dashboard Update.JPG

The two players ID's and data are being pushed to power bi every second but they are defined as the same value TDist, CurSp, Impacts & Sprints. Is there a way I can define these values by ID in the Power Bi dataset???

This is the format of the JSON string I am sending.

{"Id":"0555","TDist":4656.7812,"CurSp":0.17777792,"Impacts":34,"Sprints":21,"T":"2020-03-07T17:57:36.3"}
{"Id":"8a92","TDist":4136.4614,"CurSp":0.013888899,"Impacts":16,"Sprints":7,"T":"2020-03-07T17:57:36.3"}

 

The dataset is currently configured below:

Streaming Dataset.png
Any help on this would be greatly appreciated.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.