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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jkouloukas
Frequent Visitor

Direct Query Delimeter

After scavenging past discussions, I have yet to find a solution to an issue. Direct query is mandatory so I can't use Split Column. The DAX expressions I have found online have produced no results. I provided an attachment that shows strings separated by dashes. The dashes need to act as a delimeter that produce 4 separate columns (some values will be null). PATHITEM is not an option is this case because row-level security will be used in DirectQuery. Any help from the community would be great! Thanks guys

 

directqueryerror2 (2).JPG

 

 

1 REPLY 1
edhans
Community Champion
Community Champion

I'm really curious to see if there is a solution. Direct Query severely limits transformations so you cannot split the columns, nor use about 95% of the Text.* functions Power Query has. And you've also seen that it will limit the DAX you can use as well.

 

I think the solution will be to work with your DBA to split those columns in a SQL View that you connect to, or switch the model to Import mode. The data can definitely be split but I'm pretty sure will require SQL statements to do it. You could also write your own SQL and stick it in the Advanced Options SQL statement box, but that would be a last resort for me. A View is much preferred as you can transform after the view is brought in, just like a table, and you have no security issues in the desktop or gateway with trying to execute raw SQL code.

edhans_0-1602540424369.png

 

 

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors