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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ak77
Post Patron
Post Patron

Captilize each word in Direct Query

Hi BI Gurus

 

i have a column say "Node Name"  which has multiple words(Ex: PRIVATE DEBT AND LOAN,DIRECTLY HELD INVESTMENTS etc) retrieved thru Direct query. 

i want to change it to Capitalize each word Private Debt And Loan, Directly Held Investments

i have tried below and it gives error that  the source should be converted to import mode before using it

1.Captilize each word in power query

2.m code Text.Proper(Node Name)

 

is there a way to achieve this in DAX .. Please pass the DAX sample if available when Direct query is used

 

Thanks

Ajay

  

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @ak77 
The problem with Dax here is that you can't add a column with direct query mode.
I don't think that there is a solution from power bi.
But,
You can modify it from the connection

In the datasource connection --> Advance options --> Specify the Select query. 

Example : select upper(colname) Col1, upper(colname) Col2 from table1,etc....

Please see linked discussion:

https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-a-field-to-Title-Case-when-us...

 

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @ak77 
The problem with Dax here is that you can't add a column with direct query mode.
I don't think that there is a solution from power bi.
But,
You can modify it from the connection

In the datasource connection --> Advance options --> Specify the Select query. 

Example : select upper(colname) Col1, upper(colname) Col2 from table1,etc....

Please see linked discussion:

https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-a-field-to-Title-Case-when-us...

 

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors