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 expert users, we all know that not selecting unnecessary columns is a good way to optimize BI performance. But If I need to select 2/3 columns from database and want to join with a table, how to do that? For example, sales table contains "City key" but I didn't select it. Now I want to select the City key column and join with the sales table.
Solved! Go to Solution.
Hi @Greg_Deckler , this is the image of a data model I am working on. The [Dimension City] table contains a column "City key". In order to create a relationship between [Fact sale] and [Dimension City], I need to import the column "City key" from original SQL [Fact Sale]. Actually, I didn't select the "City key" column at first. I thought I don't need it. But now I am going need that. How can I bring back the City key column from SQL database in the [Fact Sale column]? I hope I described my problem clearly. I looked for several solutions but nothing came up to my screen.
@Anik Go back to your query and add the City key? Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
Oh, I found the solution.
https://community.powerbi.com/t5/Desktop/How-to-add-a-new-column-in-the-existing-table/m-p/249134
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 |
---|---|
13 | |
13 | |
10 | |
8 | |
7 |
User | Count |
---|---|
17 | |
10 | |
7 | |
6 | |
6 |