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
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
Super User
Super User

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
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.