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

Join 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.

Reply
ko
Frequent Visitor

Edit direct query against Amazon Redshift

Would like to load data from Amazon Redshift in direct query mode and edit the initial query before loading into PowerBI.

From an old blog post announcing the connectivity (powerbi.microsoft.com/fr-fr/blog/announcing-support-for-amazon-redshift-reports-in-the-power-bi-service) it shows a screen shot where after connecting with server, database, username and pasword you have option to "Load / Edit / Cancel"  Would like the 'Edit'  option but only see "Load/Transform Data/Cancel" 

 

1 ACCEPTED SOLUTION

I'm betting it is a permission issue or a feature they don't support. You may need to check forums that specialize in RedShift.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

5 REPLIES 5
edhans
Super User
Super User

Transform has replaced "edit"

 

It is the same thing. They are just harmonzing the terms across a number of platforms. I'm reading a PQ book that says "edit" in every step, and it was published less than a year ago. It is a recent change.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
ko
Frequent Visitor

Thanks, sorry I have described the wrong symptoms.    With a SQL server source , direct query, local or on cloud , can go to 'Edit Queries'  select 'Source'  presented with dialog box that includes Server, Database and ability to edit the SQL statement

edit SQL Server .PNG

 

Using Amazon Redshift - the option to Edit the SQL statement does not exist.

 

edit RedShift.PNG

Adding direct SQL statements to the Advanced area is a security issue. I recently had an issue where someone was trying to do this with SQL and it ran locally, but not over the gateway, because the gateway permissions didn't have the elevated permisions necessary to run a native statement. Think about it - you could type in a statement to change/remove records or tables.

 

So perhaps it is a security issue that Amazon RedShift doesn't allow typing in the statements through apps, or Power Query simply doesn't support it at this stage.

 

You could try connecting to a table normally, then changing the SOURCE statement manually in Power Query. It is possible the functionality is there, but the UI isn't.

 

A manaual SQL statement looks like this:

 

= Sql.Database("localhost", "AdventureWorks2017", [Query="select * from Person.ContactType"])


Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
ko
Frequent Visitor

I tried manually entering the SQL through advanced editor.  Gave error

 

Expression.Error:  'Query' is not a valid Amazon Redshift option.  Valid options are : 'BatchSize'

 

 

 

 

 

 

 

 

 

I'm betting it is a permission issue or a feature they don't support. You may need to check forums that specialize in RedShift.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors