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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
JamilESpencer
Frequent Visitor

Calculate sales forecast using two tables

Hi,

 

I am trying to figure out a formula to calulate sales projections using two different tables. I created a relationship between the two tables via my "Item" column.

 

Table 1 contains previous fiscal year sales data

Table 2 contains expected percentage increase per month per ITEM

 

I created measures totalling each of my monthly sales data in Table 1 i.e. a measure for Total Sales in June, Total Sales in July etc. E.g. FM19Apr = CALCULATE(sum('Sales History'[Units Sold]),FILTER('Date','Date'[Fiscal Year]="FY18"),FILTER('Date','Date'[Month]=4)) 

 

I am trying calculate the sales increase per ITEM per Month. Note, I also have a data table.

 

E.g. Table 1:

TRANDATEITEMUnits Sold
2015-01-051261021408
2015-01-221261021204
2015-03-061261021204
2015-05-261261021408
2015-05-291261021204
2015-06-181261021204
2015-07-091261021204
2015-07-231261021408
2015-08-061261021204
2015-09-181261021204
2015-09-301261021408
2015-10-191261021204
2015-11-301261021204

 

 

E.g. Table 2:

ITEMJune JulyAugustSeptemberOctoberNovemberDecember
1261021       
1261023       
1261024       
1261026       
1261027       
1261028       
1261029       
12620210.1 0.10.1   
12620220.1 0.10.1   
12620230.1 0.10.1   
12620240.1 0.10.1   
12620250.1 0.10.1   
12620260.1 0.10.1   
12620270.1 0.10.1   
12810010.250.250.250.25 0.250.25
12810020.250.250.250.25 0.250.25
12810030.250.250.250.25 0.250.25
12810040.250.250.250.25 0.250.25
2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @JamilESpencer,

 

Did you solve it? Can you share the answer or mark the proper answer as a solution please?

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @JamilESpencer,

 

Please check out the details in the demo in the attachment.

I would suggest you unpivot the Table2. 

Calculate_sales_forecast_using_two_tables

 

Best Regards,

Dale

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors