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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
cramkumar86
Frequent Visitor

We cannot apply operator & to types Text and Table.

Hi, 

I am trying to reference a date returned by another query in the SQL's where clause. As you can see in the images attached. there is a table 'me_date' that contains only one column 'business_date' with a single value. When I try to pass this date to another query connecting to Impala, it gives me the below error. Could you please help?

 

Expression.Error: We cannot apply operator & to types Text and Table.

 

me_date:

cramkumar86_0-1718813552766.png

 

Capture.JPG

4 REPLIES 4
Ahmedx
Super User
Super User

try to do this and then in other requests you can refer to this request

Screenshot_1.png

Thank you Ahmed. This helped me convert the table to a single value. But I get different error now, while pasisng this value to another query.

 

cramkumar86_0-1718868437680.pngcramkumar86_1-1718868465453.png

I have tried using some of the conversion options listed here. But none of them helped.

Type conversion - PowerQuery M | Microsoft Learn

jgeddes
Super User
Super User

Based on your screenshot, me_date is still a table. If the date is the only value in the table you should be able to add a Table.FirstValue step to the end of the me_date query to return just the date.




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

Proud to be a Super User!





Thank you. Am I not allowed to put this step within the same table? It gives me an error.

 

cramkumar86_0-1718818899136.png

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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