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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
jordan_ee
Regular Visitor

How to visualize an on/off data type

So I have a timeline set up that correlates a date and time for when a pump turns on or off. The issue im having is i'm trying to use a line chart to visualize it, and there is a slope between 2 timestamps, whereas I want it to look like a square wave, as soon as the pump turns on, it goes from 0-1, instead of sloping from 0-1 from point to point.

 

 

So, for example, say I have a time at 3:00PM, and the value at that time is 0, or off, then, at 3:02 PM, someone turns the pump on, and the value goes to 1. I only have data points when the status of the pump changes. With the current line chart, there is a slope from 3 to 3:02, but I would like it to go from 0 to 1 immediatly at 3:02 with a vertical line, is there any way to visualize this in powerbi?

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@jordan_ee

 

The line chart will always show change between data points gradually with a smooth line. If you need to show the change significantly, I suggest you try other type charts like column charts.

 

Regards,

Simon Hou

View solution in original post

4 REPLIES 4
v-sihou-msft
Microsoft Employee
Microsoft Employee

@jordan_ee

 

The line chart will always show change between data points gradually with a smooth line. If you need to show the change significantly, I suggest you try other type charts like column charts.

 

Regards,

Simon Hou

Unfortunately a column chart will only draw constant-width bars each time there is a 1, with the center at the time the pump turns on. I've made the same experience, and funnily my data is also coming from a pump.

Any other ideas, anyone? Many thanks!

Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @jordan_ee

 

Have you tried the Area chart?


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Area chart does not work - same slopes, but area below is filled. I have not found a solution so far, either.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.