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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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