cancel
Showing results for 
Search instead for 
Did you mean: 
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
Microsoft
Microsoft

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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Top Solution Authors