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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
ArchStanton
Impactful Individual
Impactful Individual

Format future values in Area Chart

Hi,

 

I have the following visuals that include predicted figures for September onwards:

ArchStanton_0-1725356511310.png

Is there any way I can:

 

  1. Shade the area from Sep onwards in the Area Chart Visual to show these are predicted values?

The current code that sit behind these visuals are:

 

 

Cumulative = SUM(Modelling[Cumulative])

 

 

 

 

 

Original Forecast = 
    VAR _firstdate = 
            CALCULATE(MIN('Total Closures'[Month]),
            FILTER('Modelling','Modelling'[Forecast] <> BLANK() )
            )
    RETURN
        CALCULATE(
                MIN('Modelling'[Forecast]),
                FILTER ('Modelling', Modelling[Month] = _firstdate)
        )

 

 

 

 

 

% Difference = 
(Modelling[Last Value Adjusted] - [Last Value Forecast2]) / [Last Value Forecast2]

 

 

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,@ArchStanton .Thank you for your reply.
I somewhat didn't understand what you need behind it , but I'm guessing that's the case, hope it helps.
create measures:

M_Cumulative02 = CALCULATE(SUM('Modelling'[Cumulative]),'Modelling'[PastorFuture]="feature")
ISFuture = IF(MAX('Modelling'[PastorFuture])="feature",1,0)

Format your visual >Visual >Data labels>Value>Color>conditional formatting

vjtianmsft_0-1725874829288.pngvjtianmsft_1-1725874836818.pngvjtianmsft_2-1725874844843.png

If you want to set the color of the shadows under the line graph uniformly (set the color of all predicted value ranges uniformly to the same color), unfortunately I haven't found a suitable way to do that at the moment.

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

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



 

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

Hello,ajohnso2 ,thanks for your concern about this issue.

Your answer is excellent!
And I would like to share some additional solutions below.


Hi,@ArchStanton .I am glad to help you.
As ajohnso2 suggested.
You only need to write the measure you want to display the expected value as two separate measures
like this.
Create a column of calculations (or measures) to be used as markers

vjtianmsft_0-1725865221798.png

vjtianmsft_1-1725865231738.png

vjtianmsft_2-1725865245596.pngvjtianmsft_3-1725865251765.png

 

 

 

Original Forecast02 = 
    VAR _firstdate = 
            CALCULATE(MIN('Total Closures'[Month]),
            FILTER('Modelling','Modelling'[Forecast] <> BLANK() )
            )
    RETURN
        CALCULATE(
                MIN('Modelling'[Forecast]),
                FILTER ('Modelling', Modelling[Month] = _firstdate &&'Modelling'[PastorFuture]="feature")
        )

 

 

 

You need to pay attention to the order in which the fields are displayed in Y-axis; the fields below will override the fields above them.

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.


Thank you so much! this now works exactly as in your pbix file - much appreciated.

There is one more thing, is it possible to shade the area higlighted with the arrow? The projected figures are on top so it would make sense to shade these and not the ones you have done?

ArchStanton_0-1725872028307.png

 

Anonymous
Not applicable

Hi,@ArchStanton .Thank you for your reply.
I somewhat didn't understand what you need behind it , but I'm guessing that's the case, hope it helps.
create measures:

M_Cumulative02 = CALCULATE(SUM('Modelling'[Cumulative]),'Modelling'[PastorFuture]="feature")
ISFuture = IF(MAX('Modelling'[PastorFuture])="feature",1,0)

Format your visual >Visual >Data labels>Value>Color>conditional formatting

vjtianmsft_0-1725874829288.pngvjtianmsft_1-1725874836818.pngvjtianmsft_2-1725874844843.png

If you want to set the color of the shadows under the line graph uniformly (set the color of all predicted value ranges uniformly to the same color), unfortunately I haven't found a suitable way to do that at the moment.

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

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



 

Thats great, thank you for all of your help with this!!

Anonymous
Not applicable

Hi,@ArchStanton.Thank you for your reply.

You are welcome.
 

ajohnso2
Super User
Super User

ajohnso2_0-1725376079838.png

You can use your measure 'Actual incl Projected' with no change, you will need to create a new measure which will restrict your date range.
 
Cut Off =
CALCULATE(
    [Running Forecast] (Replace with [Actual incl Projected]),
    ALL('Calendar'[Week Number]),
    'Calendar'[Rolling Financial Year] = 0 && 'Calendar'[Week Number] <= 29
)

 

Here you will need to change the red highlighted area to filter to your criteria. I do not know what attributes you have avaliable to you however i would suggest using something that will make this dynamic.

 

Thanks.
I've modified your code to this but nothing changes on the visual:

 

Cut Off = 
    CALCULATE(
        [Actual incl Projected],
        ALL('Date'[Calendar Week]),
        'Date'[Yr & Mth Number] = 202408 && 'Date'[Calendar Week] < 24
    )

 

 

I tried to change the Cut Off Marker colour from dark green to something brighter but it does not appear in the series drop-down options.
Something tells me i'm not a million miles away from solving this with your help. 

ArchStanton_0-1725379222583.png

The Red values have been conditionally formatted on a calculated column I created that provides Past or Future values. 

I tried using that in place of your  'Calendar'[Rolling Financial Year] = 0

here but I get an error message:

Cut Off =
   

 

Cut Off = 
    CALCULATE(
        [Actual incl Projected],
        ALL('Date'[Calendar Week]),
        'Modelling'[PastorFuture] = "Past" && 'Date'[Calendar Week] < 24

 

 

ArchStanton_1-1725379540200.png

ajohnso2
Super User
Super User

Hey,

There is no direct way of doing it, however you can split your measures into 2.

I.e 1 measure will plot April - September, 2nd measure will plot April - March.

You can then overlay the 2 measures on your chart effectively hiding 1 behind the other and thus enabling you to change the colours of both seperately.

Thanks for your advice. I'm not quite sure how to do this.
My data table is below and is linked to excel. The month is many to many relationship with my Calendar table:

 

ArchStanton_0-1725361669060.png

It is the Cumulative Column that i would need to base the 2 measures for (Apr - Aug) & (Sep to Mar).

 

The current measure for that column is just a basic Sum = 

Actual incl Projected = SUM(Modelling[Cumulative])

 

My Calendar Table has a Month Year Sort columns that would show 202401 (Apr) and 202405 (Aug), 202406 (Sep) to 202512 (Mar).

 

Apr to Aug = CALCULATE(
    FILTER('Date','Date'[Month Year Sort])

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.