Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi
I am having problems creating a calculated column based on a column in a different table using the 'contains' function. I either get an error or '[List]'. I want to create a field in tablea that is based on values from fields in tablea and tableb. tablea and tableb are joined on a many to one relationship.
tablea *:1 tableb
I want something along the lines of:
if contains(tableb[field1], "x") then "new"
else tablea[field1]
endif
With the result to look like the image below:
Any help will be greatly appreciated
Thanks!
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
Newfield CC =
IF ( CONTAINSSTRING ( RELATED ( Tableb[field1] ), "x" ), "new", Tablea[field1] )
Thank you!
Hi,
Please check the below picture and the attached pbix file.
Newfield CC =
IF ( CONTAINSSTRING ( RELATED ( Tableb[field1] ), "x" ), "new", Tablea[field1] )
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
18 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
25 | |
10 | |
10 | |
9 | |
7 |