Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I've been here for a while trying to find out what was the problem with my dax code; i just found it, but its seems to be impossible of doing, i need the stock of the itemns to be distributed correctly following the order number order, from the lowest to the bigest. in the code i used, the problem is that when the 'DB_ORDERS'[Quant. Falta] <= StockAvailable is true, the sum will ocour, but its not right, i need a way to verify if the currend cumulated value of the sum is bigger than the current stock, if it is, it will not sum the current item quantity, and it will set the current item as out.. it seems to be impossible of doing this..
can anyone help?
file: https://1drv.ms/u/c/41783bdbd58abfd0/Ee4LSpTOV-pApa7mDD9DCAcBYoZEYqhFykemlsTpfg0jwQ?e=WlkIMu
the code is:
Solved! Go to Solution.
Hello @ClaudioF ,
Thank you for reaching out to the Microsoft Fabric Community.
As @lbendlin has already mentioned, the data you provided is not entirely clear. However, based on my understanding of your scenario and the sample data available, I tried to replicate the issue and implement a solution accordingly.
I have also attached the pbix file that I worked on for your reference. Kindly review it and let me know if it addresses your issue.
If the solution does not meet your requirements, I would request you to please share a clear and simplified sample data along with the expected output. This will help us better understand the scenario and provide you with an accurate and effective solution.
If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.
Thankyou.
Hi @ClaudioF ,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @ClaudioF ,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hello @ClaudioF ,
Thank you for reaching out to the Microsoft Fabric Community.
As @lbendlin has already mentioned, the data you provided is not entirely clear. However, based on my understanding of your scenario and the sample data available, I tried to replicate the issue and implement a solution accordingly.
I have also attached the pbix file that I worked on for your reference. Kindly review it and let me know if it addresses your issue.
If the solution does not meet your requirements, I would request you to please share a clear and simplified sample data along with the expected output. This will help us better understand the scenario and provide you with an accurate and effective solution.
If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.
Thankyou.
Hi @ClaudioF ,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
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-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
14 | |
12 | |
11 | |
10 | |
9 |