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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
GregB49
Helper I
Helper I

Device state on a time line

Hi everyone, 

I working on a sensor that sent the state of a device "Marche"= On or "Arrêt"=Off
I calculated the state duration by doing the difference between two states :

(Duration = Begin date of the state declaration - Begin date of the next state declaration")

So for each row, I have a state, a starting date and a duration.

GregB49_0-1615215368564.png

 

What I'm trying to do is to visualize the state of my device during the day. Something like this : 

 

GregB49_1-1615215555237.png

So in order to create a x-axis with hour, I have created a Hour Table (with a 10min incrementation) and I linked it to my table. 
But from this point, I don't know where to go, every visual that I've tried did not work...
An extract of my Hour table : 

GregB49_0-1615216035765.png

 

And how I've linked it : 

GregB49_1-1615216214767.png

GregB49_2-1615216239889.png

 

 


Would you have any idea guys ? 🙂 

Thank you !

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @GregB49 ,

 

You need to try the Timeline visualization:

 

https://appsource.microsoft.com/en-us/product/power-bi-visuals/wa104381377?tab=overview

 

Then you just need to add a column wiht the end time of each of your start and stop.

 

Overall visualization will look like this:

 

MFelix_0-1615398203255.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
GregB49
Helper I
Helper I

Hi @MFelix,

Thank you for your reply, actually I managed to find this solution by my own by testing many things. 
And it is with "As timeline" so you're completely right sir ! 

I had some trouble to display just a day when the duration was longer than 24h but with a bit of magic, here it is : 

GregB49_0-1615448915988.png

Thanks again,

MFelix
Super User
Super User

Hi @GregB49 ,

 

You need to try the Timeline visualization:

 

https://appsource.microsoft.com/en-us/product/power-bi-visuals/wa104381377?tab=overview

 

Then you just need to add a column wiht the end time of each of your start and stop.

 

Overall visualization will look like this:

 

MFelix_0-1615398203255.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.