Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
kcantor
Community Champion
Community Champion

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 Super User!




1 ACCEPTED SOLUTION
sdjensen
Solution Sage
Solution Sage

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

3 REPLIES 3
lucas9e
Frequent Visitor
sdjensen
Solution Sage
Solution Sage

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
kcantor
Community Champion
Community Champion

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 Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.