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
mtdimaria
New Member

Trouble Comparing Columns in Different Tables

Hello,

 

I'm having trouble comparing columns that are in two different tables. In the image below, I want to compare Expected Base Loss and Base Loss. If the two numbers match, then I want Base Loss Accuracy to read Yes, if they don't then it should read No.

 

This is what I currently have in the function

Base Loss Accuracy =
var _Table1 = SELECTEDVALUE('Service'[Base Loss])
var _Table2 = SELECTEDVALUE('Valu-Rite'[Expected Base Loss])
return
IF(_Table1 = _Table2, "Yes", "No")



mtdimaria_1-1710444075362.png

 

1 REPLY 1
vicky_
Super User
Super User

Please check that your numbers aren't being summarised (e.g. SUM, AVERGE, etc). 
I suspect that your SELECTEDVALUE() is returning blanks because there might be more than 1 value for 'Service'[Base Loss] and 'Valu-Rite'[Expected Base Loss] per row.

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