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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors