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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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