Forum Discussion

Abdult's avatar
Abdult
Regular Visitor
3 years ago
Solved

DAX

I have below talable and i need to calacutale this in Power BI only those sale where quantity is 60.

 

datesale in Qty
155
250
360
470
560
645
760
865
977
1060
  • Try this
    calculate(sum('Sheet1'[sale in Qty]),filter('Sheet1','Sheet1'[sale in Qty]] = 60))

    If I answered your question, please mark my post as solution, Appreciate your Kudos👍

    Follow me on Linkedin

3 Replies

  • Hello,

     

    calculate(sum('Tablename'[sales]),filter('Tablename','Tablename'[sale in Qty] = 60))

    If I answered your question, please mark my post as solution, Appreciate your Kudos👍

    Follow me on Linkedin

  • Abdult's avatar
    Abdult
    Regular Visitor

    not able to understand this - filter('Tablename','Tablename'[sale in Qty] = 60))

     

     

    • Idrissshatila's avatar
      Idrissshatila
      Super User

      Try this
      calculate(sum('Sheet1'[sale in Qty]),filter('Sheet1','Sheet1'[sale in Qty]] = 60))

      If I answered your question, please mark my post as solution, Appreciate your Kudos👍

      Follow me on Linkedin