cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kcantor Super Contributor
Super Contributor

Adding a Row to a Query

I am working with some data from Google Analytics. Most of the information is easy to match up to our existing item table. The main exception is where we use branding in our advertising as this does not live on the item table. Is it possible to add a row to the item table to create a category for branding? I would like for it to appear as the product categories which means it would need to be assigned a number. The information is imported from a SQL Server. I would like to add it manually without adding the field on the actual table the data comes from. 

The table is two columns -- Category code and Category.

What I have:

Category Code     Category

01                         Shoes

02                         Jackets

03                         Shirts

04                         Slacks

05                          Skirts

 

What I want:

Category Code     Category

00                         Branding

01                         Shoes

02                         Jackets

03                         Shirts

04                         Slacks

05                          Skirts

 

Is this even possible?



Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!




1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
sdjensen Senior Member
Senior Member

Re: Adding a Row to a Query

Hi,

 

I don't know if this will work for you, but you could give it a go...

 

In Power BI Desktop go to "Edit Queries" and select "Enter Data" to create a manual table. Create the new table with the sames columns as the table from Google Analytics and enter the missing data. After this you can Append the 2 queries.

/sdjensen

View solution in original post

2 REPLIES 2
Highlighted
sdjensen Senior Member
Senior Member

Re: Adding a Row to a Query

Hi,

 

I don't know if this will work for you, but you could give it a go...

 

In Power BI Desktop go to "Edit Queries" and select "Enter Data" to create a manual table. Create the new table with the sames columns as the table from Google Analytics and enter the missing data. After this you can Append the 2 queries.

/sdjensen

View solution in original post

kcantor Super Contributor
Super Contributor

Re: Adding a Row to a Query

This is even more brilliant for its simplicity.

Thank you for pointing out what should have been an obvious route.



Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!




Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 158 members 1,574 guests
Please welcome our newest community members: