Forum Discussion

Haiqal's avatar
Haiqal
New Member
1 year ago
Solved

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!

 

  • Azadsingh's avatar
    Azadsingh
    1 year ago

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

7 Replies

  • v-hjannapu's avatar
    v-hjannapu
    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.

    • v-hjannapu's avatar
      v-hjannapu
      Community Support

      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.

      • v-hjannapu's avatar
        v-hjannapu
        Community Support

        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.

  • 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?

    • Azadsingh's avatar
      Azadsingh
      Resolver II

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

  • 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
    • v-hjannapu's avatar
      v-hjannapu
      Community Support

      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.