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
santu1021
Helper II
Helper II

Create a new report

I would like to create a new report, I have around 1 billions part numbers. For these part numbers, on daily basis, I would like to have a report which gives stock level as below. 

 

 Warehouse1 StockWarehouse2 Stock
SKU 1No StockNo Stock
SKU 2No StockIn Stock
SKU 3In StockNo Stock
   
*Ignore if stock on both warehouses
7 REPLIES 7
Nathaniel_C
Community Champion
Community Champion

Hi @santu1021 ,

If I understand your question, your measure would be. Replace table with your table name, and W1 Stock with your column name.  Dropping these two measures on the table next to the SKU will filter for each SKU #
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

Warehouse1 Stock = 
var _total =SUM(table[W1 Stock)
var _calc = IF(_total>0,"In Stock", "No Stock")
return _calc

Warehouse2 Stock = 
var _total =SUM(table[W2 Stock)
var _calc = IF(_total>0,"In Stock", "No Stock")
return _calc

  





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi Nathaniel,

 

Thank You for the reply

My data is in below template.

Org Code : are warehouse 1 and warehouse 2

CPN : are part numbers

Total On Hand qty : Stock

 

I'm tried the setups you have mentioned but bit lost with it.

May I ask to provide more details with steps, screen shots

 
 
 

Model 2.PNG

Hi @santu1021 ,
Just got online again.  Would you  copy and paste what you in that picture directly into this message.  I will build a pbix with it and detail the steps.

Thanks,

Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Warehouse 1 and 2 have common part numbers. I have over 1 billions lines and I need to run this daily report to take action.

scenario 1 :  If same part number (ex part 1) is in stock at Both Warehouses : No action for me to take.

Scenario 2  : If same part number (ex part 2) is in stock at WH 1 and not in stock at WH2 : Action to take for me on WH2.

Scenario 2  : If same part number (ex part 3) is not in stock at WH 1 and is in stock at WH2 : Action to take for me on WH1.

Scenario 3  : If same part number (ex part 3) is not in stock at WH 1 and WH2 : Action to take for me on WH1 and WH2

 

 

WareHouse 1 and 2Item NoStock
Warehouse 2Part 17
Warehouse 1Part 1315
Warehouse 2Part 2 
Warehouse 1Part 2100
Warehouse 2Part 350
Warehouse 1Part 30
Warehouse 1Part 40
Warehouse 2Part 40

is the blank 0





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Yes,  0 is no stock at ware house

Hi @santu1021 ,
Here is my PBIX 

Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
parts.PNG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.