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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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