Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello PowerBI Community, I am stuck on a problem and would be very greatful if somebody could assist me.
Table 1 - Customer List
Table 2 - Order
These tables have a Many to 1 link on CustomerID. So a customer can have multiple orders
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 this one of the orders from a customer contains Apple OR If a Large Fruit 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!
Solved! Go to Solution.
a new column in customer
new column =
var _cnt = countx(filter(order, order[customerid] = customer [customerid] && ( [Fruit] ="Apple" || [Size] ="Large") ) , order[CustomerID])
return
if(isblank(_cnt), false(), True())
a new column in customer
new column =
var _cnt = countx(filter(order, order[customerid] = customer [customerid] && ( [Fruit] ="Apple" || [Size] ="Large") ) , order[CustomerID])
return
if(isblank(_cnt), false(), True())
Thank you for the help,
Do you know how I can solve it now for three tables? For example I have added a 3rd table
This is connected to the ORDERS table with a many to one relationship. So now we have this
So now if I wanted to create the SAME column as before, except now with an added condition
If this one of the orders from a customer contains Apple OR If a Large Fruit OR if they have an order price over £2 then TRUE, ELSE FALSE. The end result would be an additional column on the customer list table containing true / false values.
Thank you Amitchandak!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
57 | |
38 | |
36 |
User | Count |
---|---|
82 | |
67 | |
61 | |
46 | |
45 |