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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to create a check of various conditions?

Hello

 

I want to check that Table1[Col1]=Table2[Col2] or some other condition and I want to display the output of this check to a Card visual showing TRUE or FALSE.

 

I suppose one way is to create a column to check this condition, return 0 or 1 for TRUE/FALSE and then if the total is >0, there the card should show FALSE.

 

Would that be the most efficient way?

Thanks! 

1 ACCEPTED SOLUTION

@Anonymous, You can try this

Measure = IF(
    AND(HASONEVALUE('Table (3)'[Col1]),HASONEVALUE('Table (3)'[Col2])),
    IF(VALUES('Table (3)'[Col1]) = VALUES('Table (3)'[Col2]),
    TRUE(),
    FALSE()
    ),
    "NA"
)

View solution in original post

3 REPLIES 3
SivaMani
Resident Rockstar
Resident Rockstar

@Anonymous, Are the col1 and 2 aggregatable? if yes, you can create a measure to do this?

 

share sample data and expected results.

Anonymous
Not applicable

@SivaMani mmm what do you have in mind?

 

Col1Col2
AC
AA
BA
BB
BB

@Anonymous, You can try this

Measure = IF(
    AND(HASONEVALUE('Table (3)'[Col1]),HASONEVALUE('Table (3)'[Col2])),
    IF(VALUES('Table (3)'[Col1]) = VALUES('Table (3)'[Col2]),
    TRUE(),
    FALSE()
    ),
    "NA"
)

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