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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
stupido
New Member

Two page filters combined with AND

Hello,

I wonder if it's possible to set two filter on a page or a table for two different colums that are combined with a logical AND.

example table:

MaterialActualMargin
ABC1500
BCD0120
CDE00

I only want to get rid of material CDE, but when I set two filter "Actual is not 0" and "Margin is not 0" all record sets dissappear.

It seem the logical AND is only available within one column. Is there a way to get to the filtered table?

Thanks

1 ACCEPTED SOLUTION
S_JB
Resolver III
Resolver III

You can include this measure as a visual level filter without including it as a column.

 

Navigate to the 'Add a filter to a visual' section in the below link to see how this can be done:

 

https://docs.microsoft.com/en-us/power-bi/create-reports/power-bi-report-add-filter 

 

 

View solution in original post

3 REPLIES 3
S_JB
Resolver III
Resolver III

You can include this measure as a visual level filter without including it as a column.

 

Navigate to the 'Add a filter to a visual' section in the below link to see how this can be done:

 

https://docs.microsoft.com/en-us/power-bi/create-reports/power-bi-report-add-filter 

 

 

S_JB
Resolver III
Resolver III

You could create a new measure which sums actual and margin, then use this as the filter:

 

Combined = Table[Actual] + Table[Margin]

Combined = Table[Actual] + Table[Margin]

doesn't work for me, as I can not use a column name without aggregation directly in a measure.

This one will work:

Combined = SUM(Table[Actual]) + SUM(Table[Margin])

but I' have to add it to my table. I donn't want the user to see this column.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.