- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Dax column - Available Quantity Calculation not working
Hello -
I have a relatively simple power bi report that works with Inventory data.
The columns in my model are
- Item Code
- Item Code Desc
- Order Type
- Total Quantity on hand (Constant value per item code)
- Quantity Ordered
- Quantity BackOrdered
- Quantity Shipped
- Warehouse Code
I have created a Net On Order field with the folliowing data and it works correctly.
In this table I would expect the available value to be -10623 but instead it's coming up with 96249.
Any ideas what I could be doing wrong here?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @EricPad ,
Thanks for the reply from Ashish_Mathur , please allow me to provide another insight:
You can create a measure.
Available =
MAX(vw_OpenOrdersByItem[TotalQuantityOnHand]) - SUM(vw_OpenOrdersByItem[NetOnOrder])
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

This worked perfectly! Thank you so much!
I tried something similar as a column but not a measure. Thank you again for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @EricPad ,
Thanks for the reply from Ashish_Mathur , please allow me to provide another insight:
You can create a measure.
Available =
MAX(vw_OpenOrdersByItem[TotalQuantityOnHand]) - SUM(vw_OpenOrdersByItem[NetOnOrder])
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

This worked perfectly! Thank you so much!
I tried something similar as a column but not a measure. Thank you again for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hello -
Here is the link:
https://drive.google.com/file/d/19J3TS6Vw7XeVKnt_-67gPraSd1BSAIec/view?usp=drive_link
Thank you!
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @EricPad ,
Ashish_Mathur , thanks for your concern about this case. I tried to create a sample data myself based on the user's requirement and implemented the result. Please check if there is anything that can be improved. Here is my solution:
Try setting the field to "don't summarize".
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

When I click to not summarize the available field for some reason the Net On Order field value changes to an incorrect value as well.
I think the Available field needs to be some type of sumx value where for a given item code the sum of the Net On Order is subtracted from the static (per item code) Total Quantity on hand but I haven't been able to get the syntax correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi,
Share the download link of the PBI file. Clearly show the problem there.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

where can I share it to?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Upload it to Google Drive and share the download link.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
04-27-2024 03:07 AM | |||
07-29-2024 03:00 PM | |||
02-15-2024 03:08 AM | |||
07-13-2023 12:23 PM | |||
08-18-2024 09:59 PM |
User | Count |
---|---|
114 | |
90 | |
86 | |
54 | |
46 |