<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Format a field to Title Case when using Direct Query in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-a-field-to-Title-Case-when-using-Direct-Query/m-p/2503623#M69279</link>
    <description>&lt;P&gt;In the datasource connection --&amp;gt; Advance options --&amp;gt; Specify the Select query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example :&amp;nbsp;select upper(colname) Col1, lower(colname) Col2 from table1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2022 06:40:51 GMT</pubDate>
    <dc:creator>pavanmarri</dc:creator>
    <dc:date>2022-05-10T06:40:51Z</dc:date>
    <item>
      <title>Format a field to Title Case when using Direct Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-a-field-to-Title-Case-when-using-Direct-Query/m-p/2503438#M69268</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Hello,&lt;BR /&gt;I need to set a field to Title Case, which is easily done in Transform Data &amp;gt; Transform Tab &amp;gt; Format &amp;gt; Capitalise Each Word&lt;BR /&gt;However I'm getting an error that this can't be done with Direct Query. I can't change this data to Import, it has to be Direct Query. Is there an alternative way in DAX (or however else) to set the field to Title Case?&lt;BR /&gt;Thank you&lt;/SPAN&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 May 2022 06:24:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-a-field-to-Title-Case-when-using-Direct-Query/m-p/2503438#M69268</guid>
      <dc:creator>Ry5</dc:creator>
      <dc:date>2022-05-10T06:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Format a field to Title Case when using Direct Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-a-field-to-Title-Case-when-using-Direct-Query/m-p/2503623#M69279</link>
      <description>&lt;P&gt;In the datasource connection --&amp;gt; Advance options --&amp;gt; Specify the Select query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example :&amp;nbsp;select upper(colname) Col1, lower(colname) Col2 from table1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 06:40:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-a-field-to-Title-Case-when-using-Direct-Query/m-p/2503623#M69279</guid>
      <dc:creator>pavanmarri</dc:creator>
      <dc:date>2022-05-10T06:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Format a field to Title Case when using Direct Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-a-field-to-Title-Case-when-using-Direct-Query/m-p/2506068#M69400</link>
      <description>&lt;P&gt;This returns two columns - one with the field in all uppercase, the second with the field in all lowercase&lt;BR /&gt;I need the field to be in Title Case, where every word has a capital first letter and the remaining are all lowercase&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 00:55:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-a-field-to-Title-Case-when-using-Direct-Query/m-p/2506068#M69400</guid>
      <dc:creator>Ry5</dc:creator>
      <dc:date>2022-05-11T00:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Format a field to Title Case when using Direct Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-a-field-to-Title-Case-when-using-Direct-Query/m-p/2513147#M69760</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="372024" data-lia-user-login="Ry5" class="lia-mention lia-mention-user"&gt;Ry5&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No, Direct Query mode does not support this&amp;nbsp;complex query foldring.&amp;nbsp;The only way to solve the problem is from your database side&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The power bi get data form SQL Database is using query foldring to change the query to sql statement and send it to SQLDB, then SQLDB return the data to power bi.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Query foldring only support simple&amp;nbsp;&lt;SPAN&gt;transform data like sum(), rename().This is for better performance performance and unnecessary errors. For more details you can refer these links.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/power-query/power-query-folding" target="_blank"&gt;Query folding - Power Query | Microsoft Docs&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-about#model-design-guidance" target="_blank"&gt;Using DirectQuery in Power BI - Power BI | Microsoft Docs&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ chenwu zhu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 09:55:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-a-field-to-Title-Case-when-using-Direct-Query/m-p/2513147#M69760</guid>
      <dc:creator>v-chenwuz-msft</dc:creator>
      <dc:date>2022-05-13T09:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Format a field to Title Case when using Direct Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-a-field-to-Title-Case-when-using-Direct-Query/m-p/2515953#M69986</link>
      <description>&lt;P&gt;Thank you&lt;BR /&gt;I did find a conversion process here -&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;A title="https://stackoverflow.com/questions/63652947/convert-to-proper-case-using-dax" href="https://stackoverflow.com/questions/63652947/convert-to-proper-case-using-dax" target="_blank" rel="noreferrer noopener"&gt;https://stackoverflow.com/questions/63652947/convert-to-proper-case-using-dax&lt;/A&gt;&lt;BR /&gt;It's an overcomplicated solution but it's there if anyone is unable to set the formatting back in their source data.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 15 May 2022 22:42:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-a-field-to-Title-Case-when-using-Direct-Query/m-p/2515953#M69986</guid>
      <dc:creator>Ry5</dc:creator>
      <dc:date>2022-05-15T22:42:07Z</dc:date>
    </item>
  </channel>
</rss>

