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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
4pepesanchez4
Frequent Visitor

How can I use the calculate formula using two filters of different columns?

First of all, thanks for the help. What I want is to add all those amounts that make up "Sueldos y Salarios" (Wages, Comision, Goals, etc) that are in one column but that do not take what are indeminzations, which is within "Saldos y Salarios" but with another breakdown in another column.

 

Formula that I am currently using and that indeminzations are included:

 

4pepesanchez4_0-1634476371586.png

 

The breakdown of indeminations is as follows:

 

4pepesanchez4_1-1634476538316.png

 

How can I continue to add all the concepts of "Salarios and Sueldos" except those that are "1.3 Indemnizaciones"

 

Thanks!!!

 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@4pepesanchez4 

You can use a similar pattern as follows:

M = 

CALCULATE (
    [total sales],
    Customer[Gender] = "Male",
    Customer[Cars Owned] <> 2
)
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
artemus
Microsoft Employee
Microsoft Employee

You can use the conditional column button under add column. Just create a new column where if your categorization column indicates exclusion, put null or 0, otherwise the value of the column you want to sum. Then just sum that new column.

Fowmy
Super User
Super User

@4pepesanchez4 

You can use a similar pattern as follows:

M = 

CALCULATE (
    [total sales],
    Customer[Gender] = "Male",
    Customer[Cars Owned] <> 2
)
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.