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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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