cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Atinder
Helper I
Helper I

convert Inventory pcs to Displays

Hello,

 

I need help with Converting my inventory from pcs to Sales unit of measure  Which can be displays, PCS, mastercase.

 

How Can i link these 2 table or add new cloumn which can convert all my items from pcs to sales unit of measure.  So, I can see how many displays or master I have to sell.

 

Atinder_0-1643425371216.png

Atinder_2-1643425550196.png

 

 

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @Atinder ,

 

Is that you want some dax to get the inventory from table1 for table2. It just some thing like vlookup values in excel. If i am right, in Power BI you can try LOOKUPVALUE. If there are some relationships between table1 and table2, you can try to create column via RELATED('table1'[inventoty] ) in table2. Contribute to this, you need the primary column ( unique times in column of table1) avoiding get wrong result. Or some measures like this.

Column =
CALCULATE(
    MAX( table1[Inventory] ),
    FILTER(
        table1,
        [No] = EARLIER( table2[Item_No] )
            && [Sales_Unit_of_Measure] = EARLIER( table2[Code] )
    )
)

 

If i misunderstood you please share sample data and expect result.


Best Regards

Community Support Team _ chenwu zhu

 

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

lbendlin
Super User
Super User

It is not clear (to me) what the issue is. Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where you are stuck?

Helpful resources

Announcements
May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through June10th!

Power BI Dev Camp Session 22 without aka link and time 768x460.jpg

Check it Out!

Watch Session 22 Ted's Dev Camp along with past sessions!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!