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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Dunner2020
Post Prodigy
Post Prodigy

Shading area between two lines

Hi there,

 

I am plotting three lines on a line graph. One is the actual value, the other is the upper limit and the last one is lower limit. Now I want to colour/shade the area between upper and lower limit lines something similar to how we show the confidence interval in forecasting. I sketched my desired output in the following picture:

 

myasir_0-1602718754741.png

Is there way of doing that in Power BI?

 

2 ACCEPTED SOLUTIONS

Hi @Dunner2020 ,

 

It seems to be impossible to achieve in Power BI now. I didn't find any custom visual for it.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

View solution in original post

9 REPLIES 9
kirbynguyen
Helper II
Helper II

@Dunner2020 

I've figured out a workaround. Use the Power KPI Custom Visual: https://appsource.microsoft.com/en-us/product/power-bi-visuals/wa104381083?tab=overview 

 

You want to use the top and bottom lines as Area and turn Area Opacity to 100. For the minimum line, choose white (or whatever your background color is) and for the maximum line, choose whatever you want your area color to be. 

kirbynguyen_0-1623180003440.png

Then, I'd turn off the Y Axis Reference Lines, so that the lines in the background don't show up. The result should look something like this:

kirbynguyen_1-1623180074993.png

In this example, I've added an average line and a regular line. If you need help with that, let me know.

 

Hi @kirbynguyen ,

 

Would you please show us sample pbix file? Thank you for support.

 

Best Regards,

Dedmon Dai

v-deddai1-msft
Community Support
Community Support

Hi @Dunner2020 ,

 

Unfortunately, I haven't found any custom viusal which can achieved it. As a workaround, you can use stacked area chart. Change the color for actual value and upper limit to the same color and change the color for lower limit to your background color(my background color is white) . Change the stroke width to 0:

 

Capture1.PNGCapture2.PNG

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

 

@v-deddai1-msft , thanks for reply. The problem is that I also want to show the actual value-line graph. Moreover, I want to show the graph as shown in the following figure:

 

Screen Shot 2020-10-19 at 19.32.48.png

 

Is there anyway of doing that in power BI?

Hi @Dunner2020 ,

 

It seems to be impossible to achieve in Power BI now. I didn't find any custom visual for it.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

vivran22
Community Champion
Community Champion

Hey @Dunner2020 ,

 

You may try custom visuals from the AppSource:

image.png

 

Cheers!
Vivek

Blog: vivran.in/my-blog
Connect on LinkedIn
Follow on Twitter

@vivran22 , I tried but do not offer functionality I am looking for

You can use an Area Chart visual, and on the Data Colors part of formatting you can change the color under the top two lines to the same color and the color under the lowest line to white.

 

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors