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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.