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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Rui
Frequent Visitor

Calculating Forecast ( Actual YTD + Budget remaining months)

Hi community,

 

I have a question.

In the file that I upload in Power BI I have actuals and budget amounts (for example revenues).

Is there a way to calculate the Forecast by summing up the Revenue YTD actuals and Revenue Remaining months budget?

 

Thanks,

Rui

 

 

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @Rui,

 

Based on my assumption, I created sample table like below.

1.PNG

 

To get the result of revenue YTD actuals and revenue remaining months budget, please try below measures:

Revenue YTD actuals = TOTALYTD(SUM(Revenue[Actual]),DimDate[Date])

Revenue YTD budgets = TOTALYTD(SUM(Revenue[Budget]),DimDate[Date],FILTER(DimDate,DimDate[Date]<=TODAY()))

Remaining budgets = CALCULATE(SUM(Revenue[Budget]),ALL(Revenue))-Revenue[Revenue YTD budgets]

Here, 'DimDate' is a calendar table with is related to 'Revenue' table based on [Date] column.

 

For more advice, please provide your sample data and illustrate your desired output with more description. If possible, post an image to show your requirement.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @Rui,

 

Based on my assumption, I created sample table like below.

1.PNG

 

To get the result of revenue YTD actuals and revenue remaining months budget, please try below measures:

Revenue YTD actuals = TOTALYTD(SUM(Revenue[Actual]),DimDate[Date])

Revenue YTD budgets = TOTALYTD(SUM(Revenue[Budget]),DimDate[Date],FILTER(DimDate,DimDate[Date]<=TODAY()))

Remaining budgets = CALCULATE(SUM(Revenue[Budget]),ALL(Revenue))-Revenue[Revenue YTD budgets]

Here, 'DimDate' is a calendar table with is related to 'Revenue' table based on [Date] column.

 

For more advice, please provide your sample data and illustrate your desired output with more description. If possible, post an image to show your requirement.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks Yuliana, it worked!

 

Rgds,

Rui

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.