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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
OliJov
Frequent Visitor

calculate amount from just several row values

I have table with 10.000 rows, and I need to calculate ammount:

iop1001/iop5628 +iop5885+iop9000 , how I do that? That measures then is affected by dimensions.

iop        amount

1001      252

1002      323

1003      525

1004      787

...

10000     969

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @OliJov 

 

You can try the following methods.

Measure = 
Var _iop1001=CALCULATE(SUM('Table'[amount]),FILTER(ALL('Table'),[iop]=1001))
Var _iop5885=CALCULATE(SUM('Table'[amount]),FILTER(ALL('Table'),[iop]=5885))
Var _iop9000=CALCULATE(SUM('Table'[amount]),FILTER(ALL('Table'),[iop]=9000))
Return
_iop1001+_iop5885+_iop9000

vzhangti_0-1695264431164.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @OliJov 

 

You can try the following methods.

Measure = 
Var _iop1001=CALCULATE(SUM('Table'[amount]),FILTER(ALL('Table'),[iop]=1001))
Var _iop5885=CALCULATE(SUM('Table'[amount]),FILTER(ALL('Table'),[iop]=5885))
Var _iop9000=CALCULATE(SUM('Table'[amount]),FILTER(ALL('Table'),[iop]=9000))
Return
_iop1001+_iop5885+_iop9000

vzhangti_0-1695264431164.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.