Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
select * from Y A
RIGHT JOIN X B
ON A. uniqueKEY=B. uniqueKey
where relatedtable ='maze'
You can use your query to get your table and not a column .
so what i suggest is using this query and getting it as an table and get an index with it too .
Use that index as a key to relate with your other table where you wanted this column to be in .
there are many commands like relatedtable which you can use to perform further anlaysis
could you please be kind enough and provide sample code based on what you are recomending using my code i have provided here i
hello @Anonymous ,
I dont beleive its possible to create a calculated columnn using SQL query .
but i do beleive that you can query a table using SQL and transform it into a seperate table with index which matches indexes with the main table.
So connecting main table (where you need the column) and queried table can be connected throiugh relationship in model tab of power bi desktop
could you please offer a demo code based on my sample query here?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 20 | |
| 13 | |
| 12 |