Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello All,
I have two tables Table A which has basic values and an empty 'Status' column and Table B which contains multiple rows with values ranging from 1-4 (Status numbers). Both tables are related.
I am looking to populate the empty column in Table A with a value ranging from 1-3 based on if a value exists in Table B[Value].
eg. if Table B[Value] contains 1 then Table A[Status] = 1,
else if Table B[Value] contains 2 and not 1 then Table A[Status] = 2,
else Table B[Value] contains 3 and not 1 or 2 then Table A[Status] = 3
Please reach out if you have any questions and any help at all is appreciated. Thank you.
Solved! Go to Solution.
@Anonymous , Try a new column like
new column =
var _st = minx(relatedtable(TableB),TableB[Value]) //or // related(TableB[Value])
return
switch(true() ,
search("1",_st,,0) >0, 1,
search("2",_st,,0) >0, 2,
search("3",_st,,0) >0, 3,
4)
@Anonymous , Try a new column like
new column =
var _st = minx(relatedtable(TableB),TableB[Value]) //or // related(TableB[Value])
return
switch(true() ,
search("1",_st,,0) >0, 1,
search("2",_st,,0) >0, 2,
search("3",_st,,0) >0, 3,
4)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |