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
funnDewer
Frequent Visitor

Trim Function in Query Editor When Using Power BI Direct Query [Impala]

When using Power BI direct query mode, I am unable to perform the trim string transformation function found in the query editor.
I am using the Impala (beta) driver.

To reproduce:
Connect to server using Impala driver in direct query mode
Create a live connection to a string table.
Open up query editor and right click on the string column
Look under "Transform" and click on "Trim"
-> Power BI would show a warning "This step results in a query that is not supported in DirectQuery mode"

Any help would be appreciated!

Best,

FD

6 REPLIES 6
funnDewer
Frequent Visitor

Help anyone?

Hi @funnDewer,

The Impala connector is still in Preview,  there are a few limits. I suspect that Trim feature is one of the limits.

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I manaully ran a query to the impala server UI and it can trim properly.

RTRIM(LTRIM(my column)) 

 

FD

v-yuezhe-msft
Microsoft Employee
Microsoft Employee

Hi @funnDewer,

In Direct Query mode, Power BI Desktop has restricted features.

In your scenario, you can right click you table in Report view, choose “New Column” , then enter the following formula(replace column name with your own). This way, you will trim space for your original column.

TrimmedColumn = TRIM(test[VENDOR])

1.PNG

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Lydia,

 

That didn't work 😞

I got the column with trim function created but when I create a Table visualization (like the one you have), it just shows the following error: 

"Can't dispay the visual. See details"

 

and when I click on the "See details", I see "...We couldn't fold the expression to the data source. Please try a simpler expression..".

 

Screen Shot 2017-01-19 at 9.34.59 PM.png

 

Any idea why this is happening? 

 

Best,

 

FD

Thanks, I'll try it out.

I am curious why the "SQL Server Database" connector in direct query mode the trim function works with the steps in my post?

Is it because they have special settings or connector with "beta" labelled are restricted?

 

Thanks again,

 

FD

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.