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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DeeCeesQuestion
New Member

Formula to show Items with Majority of Forecast

Hi - my company has four different warehouses and the same stock code can be in both warehouses.  Within the warehouse, we have customer groups and forecasts are created for each stock code by warehouse and customer group.

 

For my warehouse, "88" in the example below, I want to show items where the stock codes make up the majority of the forecast compared to the other warehouses. I don't know how to create the command or if I'm in the right place.

power bi question 011624 - Copy.jpg

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @DeeCeesQuestion ,

 

You can try formula like below:

TotalForecast = SUM('Table'[Jan FC]) + SUM('Table'[Feb FC]) + SUM('Table'[Mar FC])
Warehouse88ForecastPercentage = 
IF(ISBLANK([TotalForecast]), BLANK(), 
   DIVIDE(
      CALCULATE(
         [TotalForecast],
         VALUE('Table'[Warehouse]) = 88
      ),
      [TotalForecast]
   )
)

vkongfanfmsft_0-1705458168787.png


Best Regards,
Adamk Kong

 

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

1 REPLY 1
Anonymous
Not applicable

Hi @DeeCeesQuestion ,

 

You can try formula like below:

TotalForecast = SUM('Table'[Jan FC]) + SUM('Table'[Feb FC]) + SUM('Table'[Mar FC])
Warehouse88ForecastPercentage = 
IF(ISBLANK([TotalForecast]), BLANK(), 
   DIVIDE(
      CALCULATE(
         [TotalForecast],
         VALUE('Table'[Warehouse]) = 88
      ),
      [TotalForecast]
   )
)

vkongfanfmsft_0-1705458168787.png


Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.