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
ahipon
Frequent Visitor

Need help to Calculate SUM for multiple filters conditions

Hello,

Below expression is working and sums qty for "Demand" and "Stock" but I need to sum for "Demand","Stock", and "Supply".

Please help to rewrite in order to filter the Rollup Field for all three conditions.  Thank you.

 

Demand+Stock = calculate( SUM('Table1'[Rec./reqd quantity]), filter(Table1,Table1[Rollup]="Demand"||Table1[Rollup]="Stock"))
 
 
 
 
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @ahipon 

you can use

Demand+Stock =
CALCULATE (
    SUM ( 'Table1'[Rec./reqd quantity] ),
    Table1[Rollup] IN { "Demand", "Stock", "Supply" }
)

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @ahipon 

you can use

Demand+Stock =
CALCULATE (
    SUM ( 'Table1'[Rec./reqd quantity] ),
    Table1[Rollup] IN { "Demand", "Stock", "Supply" }
)

Thanks!  Most appreciated!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 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.