cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
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
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
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 144 members 1,914 guests
Please welcome our newest community members: