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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Alina12
Helper I
Helper I

Coloring between two lines (linechart)

Hi to all

 

I have successfully coloured the space between my lines here, but I am always left with this small area. Does anyone have an idea what I can do?

Alina12_0-1709821282182.png

Alina12_1-1709821326661.pngAlina12_2-1709821346663.png

 

Thanks in advance!

3 REPLIES 3
Anonymous
Not applicable

Hi @Alina12 ,
Based on the information you provided, I have a rough idea of your problem. After some testing it turns out that this is due to the design and it does happen when two fold lines intersect.This is caused by the fact that the gap between the current Actual and the next year's Target is filled when the two discounts cross, as shown below:

vyifanwmsft_1-1710231341619.png

 

You can submit an idea for it at:

Home (microsoft.com)

and wait for users with the same needs as you to vote for you to help make it happen as soon as possible.

 

Best Regards,

Ada Wang

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

 

Anonymous
Not applicable

Hi @Alina12 ,

On the basis of the information you have provided, can you explain what is meant by "always left with this small area". Does it mean that you do not want this area to have a fill colour or do you want it to be filled. Can you provide more examples of data to show the problem you are experiencing and what you expect the desired output to be.

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

hi  @Anonymous

Thanks for the answer for now. I only want to fill the area between the two lines in colour (positive as green and negative as red). Unfortunately, it always marks the area below the intersection of the lines in colour (see the marked red triangle in the screenshot above). The two measures that represent the lines are as follows:

Running Total_ASC_DeliveredValue =
VAR ActualSprintEndDate = MAX('Dim_Sprint Data'[SprintEndDate])
VAR TotalDeliveredValue = CALCULATE(
    [2ROW_DeliveredValue TOT],
    FILTER(
        ALLSELECTED('Dim_Sprint Data'[SprintNumber]),
        ISONORAFTER('Dim_Sprint Data'[SprintNumber], MAX('Dim_Sprint Data'[SprintNumber]), DESC) &&
        TODAY() >= ActualSprintEndDate
    )
)
RETURN
IF(
    TotalDeliveredValue = 0,
    BLANK(),
    TotalDeliveredValue
)
Running Total_ASC_BaseValue incl. ManagementFee (€) =
VAR ActualSprintEndDate = MAX('Dim_Sprint Data'[SprintEndDate])
VAR ActualSprintStartDate = MAX('Dim_Sprint Data'[SprintStartDate])
VAR TotalDeliveredValue = CALCULATE(
    [BaseValue incl. ManagementFee (€)],
    FILTER(
        ALLSELECTED('Dim_Sprint Data'[SprintNumber]),
        ISONORAFTER('Dim_Sprint Data'[SprintNumber], MAX('Dim_Sprint Data'[SprintNumber]), DESC) &&
        TODAY() >= ActualSprintEndDate
    )
)
RETURN
IF(
    TotalDeliveredValue = 0,
    BLANK(),
    TotalDeliveredValue
)

For solution I followd this blog post here: 

http://www.informationmagician.com/shaded-area-between-two-lines/

 But as you can see, it doesn't work properly for me. Hope this helps a little bit.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.