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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Sandeep_rai
Regular Visitor

Mutliple Filters in same column

Hello All, 


I am trying to calculate sum in column A depending on the multiple values in column B. To illustrate below is an example

Column A   Column B

100                 C1

200                  D1

300                  AB1

 

I am trying to calculate sum in column A only for values "C1" & "D1" but i am not able to do it. 

Below is the formula i am writing but is there any way i can put multilple filter in there

 

NAV CY = CALCULATE(SUM(Table]),FILTER(table,(table columnname"C1"))
Can anyone please help me with where i am going wrong and how can i correct it
3 ACCEPTED SOLUTIONS
v-yuta-msft
Community Support
Community Support

@Sandeep_rai ,

 

Modify your measure as below:

NAV CY =
CALCULATE (
    SUM ( Table[Column A] ),
    FILTER ( Table, Table[Column B] = "C1" || Table[Column B] = "D1" )
)

 

Community Support Team _ Jimmy Tao

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

vanessafvg
Super User
Super User

NAV CY =
CALCULATE (
    SUM ( [value] ),
    FILTER ( table, table[columnname] = "C1" || table[columnname] = "DW" )
)




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

amitchandak
Super User
Super User

@Sandeep_rai , Try like

Measure =CALCULATE (  SUM ( Table[Column A] ), FILTER ( Table, Table[Column B] in { "C1" , "D1" } ))
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Sandeep_rai , Try like

Measure =CALCULATE (  SUM ( Table[Column A] ), FILTER ( Table, Table[Column B] in { "C1" , "D1" } ))
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
vanessafvg
Super User
Super User

NAV CY =
CALCULATE (
    SUM ( [value] ),
    FILTER ( table, table[columnname] = "C1" || table[columnname] = "DW" )
)




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




v-yuta-msft
Community Support
Community Support

@Sandeep_rai ,

 

Modify your measure as below:

NAV CY =
CALCULATE (
    SUM ( Table[Column A] ),
    FILTER ( Table, Table[Column B] = "C1" || Table[Column B] = "D1" )
)

 

Community Support Team _ Jimmy Tao

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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