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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Calculating uptime with a IoT enabled test stand

I have this website that shows me if my stand is running or not: https://protected-bastion-84820.herokuapp.com/api/devices/testDevice

 

I am mainly looking at "lastUpdated", "state", and "speed" to verify if my test is running or not. Obviously, I can read this data and display a green or red light indicating if a test stand went down. (speed is "0" or state is "Fault")

 

My Question: Is there a way to calculate downtime/uptime of this test within powerBI? I think a solution could be to save a row of data whenever the state is "Fault" but I think this would take some sort of database. I was hoping to avoid having to impliment anything besides the website I linked above...

 

Thoughts?

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi  @Anonymous 

Power bi could get data from datasurce (read data), but couldn't 'write' data to datasource.

So for your case(save a row of data whenever the state is "Fault"), you need to use a database as a transfer station and then power bi get data from it and create the report.

 

Regards,

Lin

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

View solution in original post

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi  @Anonymous 

Power bi could get data from datasurce (read data), but couldn't 'write' data to datasource.

So for your case(save a row of data whenever the state is "Fault"), you need to use a database as a transfer station and then power bi get data from it and create the report.

 

Regards,

Lin

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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