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
Kurt4597
Helper I
Helper I

Conditional Column based on link between 2 other tables

Hello PowerBI Community, I am stuck on a problem and would be very greatful if somebody could assist me.

 

Table 1 - Customer List

Kurt4597_0-1662733518080.png

 

 

Table 2 - Order

Kurt4597_1-1662733518084.png

 

Table 3 - Fruit Prices

Kurt4597_2-1662733558355.png

 



 

 

Customer List is linked to Orders based on customer ID
Orders linked to fruit prices based on fruit

Kurt4597_3-1662733630626.png

 

 

I am trying to create a conditional column in the customer list table to determine if the orders created could meet a certain criteria. For example 


If an order from the customer contains an apple, OR if they have ordered a fruit with price > 2 then TRUE else FALSE

The end result would be an additional column on the customer list table containing true / false values.

 

Any help would be massively appreciated!

sample file https://easyupload.io/jcpe8c

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You can create a column like

Meets condition = 
var filteredOrders = FILTER( 
    RELATEDTABLE(Orders),
    Orders[Fruit] = "Apple" || RELATED('Fruit Prices'[Price]) > 2
)
return NOT ISEMPTY( filteredOrders )

View solution in original post

1 REPLY 1
johnt75
Super User
Super User

You can create a column like

Meets condition = 
var filteredOrders = FILTER( 
    RELATEDTABLE(Orders),
    Orders[Fruit] = "Apple" || RELATED('Fruit Prices'[Price]) > 2
)
return NOT ISEMPTY( filteredOrders )

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