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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
UsePowerBI
Post Prodigy
Post Prodigy

How to not show rows that have Field1=SOMETHING1 and Field2=SOMETHING2?

Hello

 

I have a table visual with several fields/columns.

 

I want not to show rows where Field1=SOMETHING1 and Field2=SOMETHING2.

 

I cannot do that with the visual filters at the right pane. Is there any other solution?

 

I tried to write a measure but it does not work:

 

Table filtered = FILTER(Table1,NOT(CONTAINSSTRING(Table1[Col2],"SOME TEXT")) && Table1[Col3]<>"OTHER TEXT")

 

Thanks!

1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @UsePowerBI ,

 

Try to create a measure like this and add it to the filter window on the right.

Filter = 
IF(
    MAX('Table'[field1]) = "something1" && MAX('Table'[field2]) = "something2",
    1, 0
)

w6.PNG

 

Or try to a measure like this.

// Add the measure to the table visual
Measure = 
CALCULATE(
    SUM('Table1'[field]),
    FILTER(
        ALL('Table1'),
        'Table1'[Col2] <> "SOME TEXT" && 'Table1'[Col3] <> "OTHER TEXT"
    )
)

 

Best regards,
Lionel Chen

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

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @UsePowerBI ,

 

Try to create a measure like this and add it to the filter window on the right.

Filter = 
IF(
    MAX('Table'[field1]) = "something1" && MAX('Table'[field2]) = "something2",
    1, 0
)

w6.PNG

 

Or try to a measure like this.

// Add the measure to the table visual
Measure = 
CALCULATE(
    SUM('Table1'[field]),
    FILTER(
        ALL('Table1'),
        'Table1'[Col2] <> "SOME TEXT" && 'Table1'[Col3] <> "OTHER TEXT"
    )
)

 

Best regards,
Lionel Chen

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

amitchandak
Super User
Super User

@UsePowerBI , is there any other measure. if this only measures in visual it should show that. If there are more you should see blank value for this column

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.