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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors