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

Two-Condition Filter

Hi,

 

I have a talbe like below:

 

User        Type of Document       USD

Carlos           A                             10
Carlos           B                             20

Roberto        A                             30

Roberto        B                             40

 

I want to exclude the lines where "Carlos" and "B" are together (in this case the USD 10 line). Is it possible to use a two-conditions filter in the filter pane in order to avoid using DAX, new columns, etc.?

 

Please help. Thanks!

6 REPLIES 6
amitchandak
Super User
Super User

@planning , You can have measure like

calculate(sum(Table[USD]), filter(Table, Table[User] = "Carlos" && Table[Type of Document] ="B"))

Thanks! The only thing is that in this way I'm including that information when I want to exclude it. How can I filter it out instead of in?

Greg_Deckler
Super User
Super User

@planning I don't believe you can combine them like that, you will need a measure like:

Measure = IF([User]="Carlos" && [Type of Document] = "B",1,0)

Filter out the 1's.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks! The thing is that I can´t choose neither the User nor the Type of Doc columns in the measure. Is there a workaround for this?

Thanks! The thing is that I can´t choose neither the User nor the Type of Doc columns in the measure. Is there a workaround for this?

planning
Frequent Visitor

* In this case the USD 20 line (sorry)

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.