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
Anonymous
Not applicable

Rolling forecast(?) question

Hello everyone,

 

I have been trying to solve this problem for a few days now and its driving me crazy since it seems so simple to solve in excel but not in BI

 

So I have 3 tables:

 

Disbursements

ManagerCompanyDate Disbursement 
TarlockMicrosoft5-Jan-21 $                 50,000.00
AangTesla6-Feb-21 $                 25,000.00
KorraRIOT7-Mar-21 $                 15,000.00

Repayments

ManagerCompanyDate Repayment 
TarlockMicrosoft5-Jan-21 $    30,000.00
AangTesla6-Feb-21 $    20,000.00
KorraRIOT7-Mar-21 $    10,000.00

Oustanding

ManagerCompany31-Dec-2031-Jan-2128-Feb-2131-Mar-21
TarlockMicrosoft $  100,000.00=100,000+50,000-30,000 calculate  calculate 
AangTesla $    50,000.00 calculate  calculate  calculate 
KorraRIOT $    10,000.00 calculate  calculate  calculate 

And I basically need to calculate the total of the next month by using Oustanding of Previous Month + Disbursements - Repayments.

 

The issue is that every month I need to update the outstanding table with the real data. So how can I have a table with both static and dynamic data?

 

Any ideas on how to solve the problem? Thanks in advance!!

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , with help from a common date table, try a new measure like

and common date , Manager and Company

 

calculate(sum(Table[Disbursement]), filter(allselected(date),date[Date] <= max(Date[Date])))
- calculate(sum(Table[Repayment]), filter(allselected(date),date[Date] <= max(Date[Date])))

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Anonymous
Not applicable

Hi Amitchandak, and thanks for your reply.

 

I followed your steps (making the date calendar as per your video and marking it as date) and tried the formula but I am unsure what to do with that.

 

My issue is with adding the outstanding data

 

https://www.dropbox.com/s/j1vasiwigm03ra5/DummyData.pbix?dl=0 

 

(I updated the dummydate to a simplified version)

I have uploaded my dummy data, could you please take a look?

 

 

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.