Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Haiqal
New Member

DAX Calculated Measure

Hi All,

I would like to calculate the sum of my table.

My table constructured using Measure.

May I know any possible way to get it done?

 

Thanks you!

 

I need to calculate the sum of qty assigned and max cap 90%.

 

Thanks!

Haiqal_0-1753692342853.png

 

1 ACCEPTED SOLUTION

Hi @Haiqal , Please share your measures for both , we can check it and enable the total for those measures.

View solution in original post

7 REPLIES 7
as_Ash
New Member

Can someone write me a DAX query which could add 2 columns in Power BI table 

Allocation based on ( Item code & First requested date.)

For Item B

 

  • Stock Limit: 100

  • Previously Used: 71 (from previous rows)

  • Remaining Stock: 29

  • Current Request: 30

  • it only allocates 29 and for rest it would allocate 0

 

for balance Stock , it would follow sequestial (Good Stock - Allocation) if Allocation exceed Good stock then it would be 0

also there might be request date be same so it could allocate what is remaining to any 

Item_CodeRequested_DtApproved_QtyStock.Good StockRestricted AllocationBalance Stock
A10/12/202419401921
A9/12/20253040210
B9/15/2023201002080
B9/12/2025511005129
B12/1/202530100290
B12/3/20253010000
C9/12/2025301003070
C9/12/2025301003040

Hi @as_Ash,
I have reproduced your requirement and implemented the solution. I have attached the PBIX file for your review so you can see the updates. Let me know if you need any changes or further improvements.



Regards,
Community Support Team.

v-hjannapu
Community Support
Community Support

Hi @Haiqal,

Thank you  for reaching out to the Microsoft fabric community forum.
If you have reviewed the questions raised by @Azadsingh and @FBergamaschi, please respond so we can provide a suitable solution based on your requirements.

Thank you.

Hi @Haiqal,
Could you please confirm whether your issue has been resolved? If it has not, kindly review the questions raised by Azadsingh and FBergamaschi. Please respond with any additional details or clarification needed so that we can work towards providing a solution that meets your requirements.

Best Regards,
Harshitha.

Hi @Haiqal,
Could you please confirm if the issue has been resolved? If so, kindly share the workaround here, as it would be helpful for other community members facing the same problem.

Best Regards,
Harshitha.

FBergamaschi
Solution Sage
Solution Sage

Hi can you please clarify

 

What do you mean sum of your table? You can sum a column not a table

 

What would a table costruite by a measure be?

 

And the visual you show is create how? What cloumns and measures are you using?

 

How does the data model look like?

Hi @Haiqal , Please share your measures for both , we can check it and enable the total for those measures.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.