Forum Discussion
Read correct price from table with minimum quantities
- 4 years ago
Hi Schorse ,
Have your problem solved?
If yes, please make that post helpful to you, as a solution. So that others have the same problems as you can find the answer quickly.
If no, maybe you can try this measure.
Measure = VAR _minq = CALCULATE( MIN( 'Table'[MinQuantity] ), ALLEXCEPT( 'Table', 'Table'[ItemNo.] ) ) RETURN CALCULATE( MIN( 'Table'[Price] ), FILTER( ALLEXCEPT( 'Table', 'Table'[ItemNo.] ), [MinQuantity] = _minq ) )Result:
If i misunderstood you ,please share you pbix file without sensitive 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.
Schorse , it is not clear what price you want to read
a new column with min price
minx(filter(Table, [ItemNo] =earlier([ItemNo]) ) , [Price] )
- Schorse4 years agoRegular Visitor
Hello amitchandak,
I have another table with sales quantities to the items.
And now I want to find out the corresponding price by measure.
So I don't need the minimum price per item, but the price per item for a certain retrieved quantity.
sorry, that I should have certainly still write there.
- amitchandak4 years agoSuper User
Schorse , we can create columns across tables but need sample data for that
refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.- Schorse4 years agoRegular Visitor
Hello amitchandak
thank you very much for your support.
I just want to insert the correct price in the Sales table.
I am not able to upload a file. Therefore, I would just need a formula that will fill me the Price column in the Sales table....
Item Quantity Price 4711 1500 ? 4711 20000 ? 5888 2000 ? 5888 3500 ? Sales-Price-Table:
ItemNo MinQuantity Price 4711 1000 3,99 4711 10000 2,99 5888 2000 1,59 5888 3000 1,45
Thanks a lot
Schorse