<?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 Split Column with DirectQuery in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Split-Column-with-DirectQuery/m-p/4701190#M61306</link>
    <description>&lt;P&gt;I have a DateTime column in BigQuery. I am importing the table using DirectQuery mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to split this DateTime column to Date and Time column, it does not allow me to stating this is not allowed in DirectQuery mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot import the data as it won't be the live version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried to write the DAX function using SEARCH, but that is not allowed either.&amp;nbsp;Is there a workaround for this?&lt;/P&gt;</description>
    <pubDate>Wed, 21 May 2025 08:27:21 GMT</pubDate>
    <dc:creator>TheColdVolcano</dc:creator>
    <dc:date>2025-05-21T08:27:21Z</dc:date>
    <item>
      <title>Split Column with DirectQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Split-Column-with-DirectQuery/m-p/4701190#M61306</link>
      <description>&lt;P&gt;I have a DateTime column in BigQuery. I am importing the table using DirectQuery mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to split this DateTime column to Date and Time column, it does not allow me to stating this is not allowed in DirectQuery mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot import the data as it won't be the live version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried to write the DAX function using SEARCH, but that is not allowed either.&amp;nbsp;Is there a workaround for this?&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 08:27:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Split-Column-with-DirectQuery/m-p/4701190#M61306</guid>
      <dc:creator>TheColdVolcano</dc:creator>
      <dc:date>2025-05-21T08:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Split Column with DirectQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Split-Column-with-DirectQuery/m-p/4701316#M61307</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1277294"&gt;@TheColdVolcano&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Yes, There is limitation in Power BI's &lt;STRONG&gt;DirectQuery mode&lt;/STRONG&gt;, especially with BigQuery. In DirectQuery mode, certain transformations like &lt;STRONG&gt;splitting a Datetime&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;column into Date and Time parts&lt;/STRONG&gt; or using certain &lt;STRONG&gt;string manipulation DAX functions&lt;/STRONG&gt; (like SEARCH) are &lt;STRONG&gt;not supported&lt;/STRONG&gt; directly because they can't be translated into native SQL for the underlying source.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Workaround Options&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Option1:&lt;/STRONG&gt;&lt;BR /&gt;Create calculated columns in BigQuery&lt;BR /&gt;Since transformations aren't allowed in Power BI with DirectQuery, &lt;STRONG&gt;push the logic to BigQuery&lt;/STRONG&gt; by modifying the view or SQL query in BigQuery to return the split DATE and TIME parts separately.&lt;BR /&gt;&lt;BR /&gt;SELECT&lt;BR /&gt;&amp;nbsp; your_datetime_column,&lt;BR /&gt;&amp;nbsp; DATE(your_datetime_column) AS date_part,&lt;BR /&gt;&amp;nbsp; TIME(your_datetime_column) AS time_part&lt;BR /&gt;FROM your_dataset.your_table&lt;BR /&gt;&lt;BR /&gt;Then point Power BI to this modified table or view using DirectQuery.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Option2:&lt;/STRONG&gt;&lt;BR /&gt;If modifying the base table isn't possible, you can create a &lt;STRONG&gt;view in BigQuery&lt;/STRONG&gt; that performs the splitting and then connect Power BI to that view.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt; I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":military_medal:"&gt;🎖&lt;/span&gt; As a proud &lt;STRONG&gt;SuperUser&lt;/STRONG&gt; and &lt;STRONG&gt;Microsoft Partner&lt;/STRONG&gt;, we’re here to empower your data journey and the Power BI Community at large.&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":link:"&gt;🔗&lt;/span&gt; Curious to explore more?&lt;A href="https://www.grazitti.com/services/data-science/solutions/data-visualization/?utm_source=community&amp;amp;utm_medium=powerbi-community&amp;amp;utm_campaign=Community-Outreach-By-Analytics" target="_blank" rel="noopener nofollow noreferrer"&gt; [Discover here]&lt;/A&gt;.&lt;BR /&gt;&lt;STRONG&gt;&lt;I&gt;Let’s keep building smarter solutions together!&lt;/I&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 09:30:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Split-Column-with-DirectQuery/m-p/4701316#M61307</guid>
      <dc:creator>grazitti_sapna</dc:creator>
      <dc:date>2025-05-21T09:30:32Z</dc:date>
    </item>
  </channel>
</rss>

