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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

fulfilling a customer order from another stock of the same product

I want to do customer-based stock management for each product. In the data I have, there are real customers and dummy customers for each product. (The dummy customer actually means the customer who produces the product in stock.) When a specific customer orders for a product, if the customer's stock of that product is insufficient, the order must be met from the dummy stock of that product. I also share a picture of how the table should be based on a single product. but i have much more product types.

crnswengineer_0-1663236942069.png

2 REPLIES 2
daXtreme
Solution Sage
Solution Sage

Hi @Anonymous 

 

I'd kindly suggest you get familiar with this first: How to Get Your Question Answered Quickly - Microsoft Power BI Community

Anonymous
Not applicable

hi @daXtreme 
i take your suggestion and i am sharing a measure that i wrote. i hope it will help you understand the problem   

measure=

var product=SELECTEDVALUE(table1 [productid])

var dummy=SELECTEDVALUE('dummytable'[productid])

var customer=SELECTEDVALUE(table1[customer])

return

 IF(urun= dummy && [ending]<0 && customer <> dummy ,[dummy stok],[ending])

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.