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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
SwapnaChippagi
Frequent Visitor

Forecasting

Is there any way to display dynamically  last three data points(forecast values ) with different colour other than previous colour points in line chart.

5 REPLIES 5
Stachu
Community Champion
Community Champion

you can create a ew measure just for forecast and plot both on he chart, his will have the same visual effect, e.g.:

Regular = SUM('Table'[Val])
Forecast = CALCULATE([Regular],'Table'[Type]="Forecast")

how do you determine the last 3 data points? is there a flag, or is it based on time?



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

@Stachu Actually i need a line graph with functionality including the last 3 data points with different colours dynamically for given inputs.As of now am not concentrating on forecast.

For example,Year on X-axis and Sales on Y-axis likewise.

Hi SwapnaChippagi ,

 

You can simply use a visual level filter to achieve last 3 values you want to see. See visual level filter: https://docs.microsoft.com/en-us/power-bi/power-bi-report-add-filter.

power-bi-default-visual-filter.png 

 

Regards,

Jimmy Tao

@v-yuta-msftBut when I used Visual filters  ,its showing only 3 data points from bottom excluding the other points.I need a visual of all points in graph with highlighting last 3 points for dynamically changing input(slicers) .

Hi SwapnaChippagi,

 

To achieve your requirement, you can take a consideration on Conditional Formatting.

 

Regards,

Jimmy Tao

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.