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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Guilherme3
Regular Visitor

How to Change the Line Chart to a Step Chart (Or make a Step Chart)

Hello All,

 

I have this table refering to a system wich has specific dates when the system changes states from online (1) to offline (0).

 

table.pngWhat i would like to do is a graph to show when the system is up and down like this.  (Done in Paint)after.png

 

 The only thing i can do in Power Bi is a grafic  like this:  before.png

 

Hope you can help me 🙂 

 

5 REPLIES 5
SeanMcN
Regular Visitor

This is now an easy change in the 2021 versions of Power BI:

  • Select the line chart
  • Go to Formatting
  • Under "Shapes" click the "Stepped" radio button:

 

SeanMcN_0-1633099138944.png

 

 

nguyenh5
Regular Visitor

You would go to Line Chart > Format > Shapes - turn on Stepped

pak
Helper II
Helper II

Hi @Guilherme3 ,

 

Maybe this isn't a solution but i used Power KPI 2.0.0 from Marketplace and in Format -> Line options choose Step-After. I used fields Axis and Values only. In my case it looks like that:

step-after.jpg

QuinnP
Advocate II
Advocate II

Hi Guilherme3

Not sure of this is still relevant, but one method that I've used is to create a line graph with Date_Change as the axis and State as the values, then under Shapes I've set Stepped to on. This should make a graph like what you need.

Cheers!

v-huizhn-msft
Employee
Employee

Hi @Guilherme3,

After research, there is no such an visual to display like what you want. The second graph you did is got from line chart, which draw the line based on the point(values) in different time. For your expected result, there are two values(0,1) where the state is 1.

You can create a similar bar chart like the following screenshot.

2.PNG

Best Regards,
Angelia

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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