cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Abdult
Regular Visitor

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
1 ACCEPTED SOLUTION

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

View solution in original post

3 REPLIES 3
Abdult
Regular Visitor

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

 

Abdult_0-1672757127739.png

 

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

Idrissshatila
Solution Sage
Solution Sage

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

Helpful resources

Announcements
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors