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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
moshiera
Frequent Visitor

True/False IF statement on two different tables

Let me explain what i'm trying to do and maybe there is an easier way of doing this...

 

Table: Vulnerability

Vul      System

x2123     xyzlaptop

x5252    xyzlaptop

x1235    abclaptop

x3421    deflaptop

Table: Disabled Systems

System

xyzlaptop

deflaptop

 

I want my report to only report on systems that have not been already disabled.  Becuase i've already disabled the systems that have a vulnerability. So I thought I could just to a new comlumn if statmenet =IF vulnerability [system] = Disabled Systems [system],"True","False") However i just keep getting an error that what ever in the Disabled systems field can't be found because i'm trying to create the column in the vulnerability table...   Any help is greatly appreicated.

 

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@moshiera

 

Hi, assuming that both tables are related.

 

New Calculated Column: 

 

Disabled = IF(COUNTROWS(RELATEDTABLE('Disabled System'))>0,"Yes","No")

 

Regards

 

Victor

Lima - Peru




Lima - Peru

View solution in original post

2 REPLIES 2
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @moshiera,

Please create relationship between the tables if there is no connection. Then follow the solution @Vvelarde posted, please give feedback when there is other issue.

Thanks,
Angelia

Vvelarde
Community Champion
Community Champion

@moshiera

 

Hi, assuming that both tables are related.

 

New Calculated Column: 

 

Disabled = IF(COUNTROWS(RELATEDTABLE('Disabled System'))>0,"Yes","No")

 

Regards

 

Victor

Lima - Peru




Lima - Peru

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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