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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Help> caculate value of items exsited in other filtered column

Hello Everyone 

I am new at POWER BI , and stuck in this issue for a while , I hope anyone could help me out 

here it is my stucking part in a simple way among many other relationships and cauclations  

I have a "volume" table , 

itemvolumesource
A1WEST
A2EAST
B3WEST
B4EAST
C5WEST
C6EAST

and a "filter" table

filter list
A
B
C

I want to sum the {volume} on the items exsited in filtered column {filter list}

I am using CALCULATE(SUM(volume[volume]),FILTER(volume,SEARCH(volume[Item]),VALUES(filter[filter list]),,0)>0))

this works ok when I only filtered one value , it goes error if I filtered "A" and "B" at the same time .

what is the correct formula should be used ?

 

I need to create a measure to caculate this ,  build relation between table will not help in my case

 

thanks

Eric

 

2 ACCEPTED SOLUTIONS
Zubair_Muhammad
Community Champion
Community Champion

HI @Anonymous

 

How about this MEASURE

Measure =
CALCULATE (
    SUM ( Volume[volume] ),
    TREATAS ( VALUES ( 'Filter'[filter list] ), Volume[item] )
)

View solution in original post

@Anonymous

 

But If there is a relationship between tables,, a simple sum of Volumes should give you the answer as well

 

 

 

View solution in original post

4 REPLIES 4
Zubair_Muhammad
Community Champion
Community Champion

HI @Anonymous

 

How about this MEASURE

Measure =
CALCULATE (
    SUM ( Volume[volume] ),
    TREATAS ( VALUES ( 'Filter'[filter list] ), Volume[item] )
)
Anonymous
Not applicable

It works AMARZING!!! 

 

thanks a lot . I know I could put relationship in this example ,but it real case ,I could not since I need to combine this outcome with other caculations 

but this is definately what I am asking for !

 

thanks!!!

@Anonymous

 

Since both the tables have common field.....they can be joined easily I believe

 

See file attached

 

relate.png

@Anonymous

 

But If there is a relationship between tables,, a simple sum of Volumes should give you the answer as well

 

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors