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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
adnanarain
Helper V
Helper V

Actuals Running total till selected month and forecast after the selected month

Dear All,

I am trying to show running total of actuals till the selected month and forecast after the selected month in one line chart. Here is the file i am using:

 

Pbix file 

 

Thank you in advance for the help.

1 ACCEPTED SOLUTION

Hi @adnanarain 

 

Is this what you want? Download the attachment to see details. I add a Financial Month column in DimDate table and four new measures. 

21111202.jpg

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@adnanarain , Try a measure like

 

var _max = maxx(allselected('Date'),'Date'[Date])
return
CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] <=max(date[Date]) && date[date] <=_max)) +
CALCULATE(SUM(forecast[forecast Amount]),filter(all(date),date[date] <=max(date[Date]) && date[date] >_max))

 

Common date table joined to you table and forecast and that is used on axis

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak  Thanks Amit,

I have already tried this but this is not working. I need a year and month slicer with single value selection and based on month selection. If you can please download the file and you will get clear idea

Hi @adnanarain 

 

Sorry I'm a little confused about the data table. In this table, there is a [Financial Date] column, [Month for Financial Date] and [Year for Financial Date]. Are the [Month for Financial Date] and [Year for Financial Date] columns identical with the [Fiscal Month] and [Fiscal Year] in DimDate table or are they just calendar month and year?

21111003.jpg

 

Do you look for a solution to get a similar output to the line chart in this blog?

 

Best Regards,
Community Support Team _ Jing

@v-jingzhang thanks for your reply. Financial month is the column to use. Ignore financial date

Hi @adnanarain 

 

Is this what you want? Download the attachment to see details. I add a Financial Month column in DimDate table and four new measures. 

21111202.jpg

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

@v-jingzhang Thank you so much.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.