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
MrPingu
Frequent Visitor

Outstanding invoices vs Revenue current & Last year

Hi,  


I'm trying to visualize incoming costs vs outstanding invoices. I managed to partially get what I want but  the one thing that I can't figure out is to make an predicted revenue based on previous year.

Basically I have these tables
Date
Date           |    Year |    Month   |Day

 

 


Invoice

Date to Pay | Amount to Pay | Year

 

Revenue

Date of Revenue | Amount of Revenue | Year

 

 

The Date table is an ordinary table with dates up to 2020.
The invoice table has dates from both paid invoices and to invoices to pay in future. For example 5th of april 2018.

The revenue table only has dates from the past.

I managed to make a graph dat displays all invoices and history revenues. 
But now I want to make prediction of the revenue based on previous year. I managed to calculate a measure using the following code:

Revenue_LY = CALCULATE([SumRev]; FILTER(ALL('Revenue_table'); 'Revenue'[Year]=MAX('Revenue'[Year]) - 1); SAMEPERIODLASTYEAR('Revenue'[Date of Revenue]))


How ever that function stops at the present. I want to make the revenue show of previous year against all outstanding invoices. 

PS: I'm totally new to DAX & PowerBI. Study material is welcome too

1 ACCEPTED SOLUTION
v-huizhn-msft
Employee
Employee

Hi @MrPingu,

You can use the Forecast feature under Analytics, more details, please see the Apply Forecasting part in this blog. And there are some blog and threads for referance.

Data Forecasting and Analytics with Power BI Desktop
1 line in a graph : actual and forecast

Best Regards,
Angelia

View solution in original post

1 REPLY 1
v-huizhn-msft
Employee
Employee

Hi @MrPingu,

You can use the Forecast feature under Analytics, more details, please see the Apply Forecasting part in this blog. And there are some blog and threads for referance.

Data Forecasting and Analytics with Power BI Desktop
1 line in a graph : actual and forecast

Best Regards,
Angelia

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.