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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mvgust
Helper III
Helper III

Evaluate True False based on indentification code

I'm trying to setup a true false evaluation statement similar to below. Ideally what I want is to only show the rows where the same code has a value in both the OT column and the PT column. I figure if I can get the evulation column correcty I can just filter out the data that doesn't meet the criteria.  The highlighted yellow is the data I want to keep.

 

code-ot-pt.png

 

Thank you!

 

 

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @mvgust 

try

IF(
CALCULATE(COUNTROWS(Table), ALLEXCEPT(Table, Table[Code]), Table[Value OT] <> BLANK()) > 0 &&
CALCULATE(COUNTROWS(Table), ALLEXCEPT(Table, Table[Code]), Table[Value PT] <> BLANK()) > 0,
TRUE(),
FALSE()
)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
az38
Community Champion
Community Champion

Hi @mvgust 

try

IF(
CALCULATE(COUNTROWS(Table), ALLEXCEPT(Table, Table[Code]), Table[Value OT] <> BLANK()) > 0 &&
CALCULATE(COUNTROWS(Table), ALLEXCEPT(Table, Table[Code]), Table[Value PT] <> BLANK()) > 0,
TRUE(),
FALSE()
)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

That worked perfectly!  Thank you!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors