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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Exclude rows if two values in same table are the same

I'm trying to figure out how to create a filter which will exclude rows in my report if values in two separate columns are equal.

 

For example:

 

KEY     VALA       VALB

123     5              6

456     5              5

 

 

I want the filter to exclude key 456 from report.

 

Any help would be greatly appreciated.

 

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

hi, @Anonymous

there is a simple way that create a calculate column to judge if two values of the current row are the same

judge = IF(Table1[VALA]=Table1[VALB],"yes","no")

then drag the field into report level filter to filter value is "no"

1.JPG

 

Best Regards,

Lin

 

 

Community Support Team _ Lin
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

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

hi, @Anonymous

there is a simple way that create a calculate column to judge if two values of the current row are the same

judge = IF(Table1[VALA]=Table1[VALB],"yes","no")

then drag the field into report level filter to filter value is "no"

1.JPG

 

Best Regards,

Lin

 

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks!  That worked great!  I used TRUE and FALSE instead of "yes" and "no"

 

Eric

 

Anonymous
Not applicable

Create another column:
FILTER = IF(VALA = VALB,"Yes","No")

Then you can filter according to the value of the new column

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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