Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
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!
Solved! Go to Solution.
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
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
77 | |
74 | |
57 | |
39 | |
33 |
User | Count |
---|---|
70 | |
63 | |
57 | |
49 | |
46 |