Forum Discussion
Need help with the DAX Calculation
- 1 year ago
Hello, thank you for the support.
Yes, is necessary because with that information I can see the PO/DO will have the material to the order.
It works but some details are missing. Could you help me? I'll tell you what I need.
For example, for product number "SR125", if I change DO to PO, I only detect the first PO, not the second.
The result should be like this:
Other example with the following part number "SR124", the result sould be:
Please see the project pbix in the following link:
Let me know if you need something else.
Thanks!
- Anonymous1 year ago
Hi Erick24 ,
Thank you for your kind reply.
Here are the final results returned for SR125 and SR124, please check to see if they meet your requirements.
This occurs because of a missing unique index key. In the original code, we determine their respective values via DO or PO.
If you change DO to PO, we need to re-add a new unique index to the filter criteria.
Based on the data in the table you provided, you can add filters in several ways.
You could get more detailed information by checking the attachment.
If you have any other concerns, please feel free to share with us here so that we can offer more support.!
Best regards,
Lucy Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.
Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
Hello Ibendlin, thank you for the information.
I have added a link where you can see the file.
Thank you again.
- lbendlin1 year agoSuper User
Why do you always have 30 on hand? shouldn't line 2 be a mix of in stock and PO?
- Erick241 year agoFrequent Visitor
This is how the system works, a field with the material on hand and the material for the orders is subtracted and then added with the PO and DO as in the example but I only have 30 pieces for the first part number, and 10 pieces for the second part number.
- lbendlin1 year agoSuper User
shouldn't line 2 be a mix of in stock and PO?