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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Shade between constant lines

Is there a way to only shade between 2 dates (constant lines)?

The shading options are only before/after, so I get this overlap, but I don't want the whole graph to be shaded - only between the dotted lines.The shading options are only before/after, so I get this overlap, but I don't want the whole graph to be shaded - only between the dotted lines.

Here is my workaround:

Not bad, but I'd prefer the shaded area to be between the target dates.Not bad, but I'd prefer the shaded area to be between the target dates.

 

Thank you!

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

In Power BI, shading between two constant lines (dates) is not directly supported in the built-in visuals. However, you can achieve a similar effect using custom visuals or by creatively using the available features.

One approach is to use the Power KPI Custom Visual. You can 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.

Power KPI

Another approach is to create a measure that returns values only between your two dates and then plot this measure on your chart. This will effectively create a “shaded” area between the two dates.

Solved: Shading area between two lines - Microsoft Fabric Community

Please note that these are workarounds and might not work perfectly for all scenarios or data sets. If this is a critical feature for your reports, you might want to consider using a more advanced data visualization tool that supports this feature natively.

Best Regards

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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