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
NewPBIe
Helper II
Helper II

Direct Query - New Table with some Values from a Direct Query Table

Hello everybody, 

 

I need to work on a direct query dataset and for some advanced filtering I need to split a String Value in more Substrings, each to be assigned to a separate column. I tried with a SWITCH + CONTAINS Query but I received Error Message "The expression specified in the query is not a valid table expression.".

 

Is possible to generate a table from values in a direct query?

 

Thank you in advance!

 

 

 

 

 

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @NewPBIe ,

If I understand correctly, you are trying to get a column which include special charactes of strings by creating a calculated table. Am I right? According to the error message, it caused by using scalar function to create a calculated table. What's the formula of your calculated table? 

Power BI DAX Back to Basics: Scalar Vs. Tabular Functions - RADACAD

You can refer the following official documentation to create a calculated table:

Using calculated tables in Power BI Desktop - Power BI | Microsoft Learn

 

If the above ones can't help you get the expected result, please provide some raw(fake) data in your direct query table (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

Best Regards

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

View solution in original post

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi @NewPBIe ,

If I understand correctly, you are trying to get a column which include special charactes of strings by creating a calculated table. Am I right? According to the error message, it caused by using scalar function to create a calculated table. What's the formula of your calculated table? 

Power BI DAX Back to Basics: Scalar Vs. Tabular Functions - RADACAD

You can refer the following official documentation to create a calculated table:

Using calculated tables in Power BI Desktop - Power BI | Microsoft Learn

 

If the above ones can't help you get the expected result, please provide some raw(fake) data in your direct query table (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

Best Regards

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

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors