Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have a DateTime column in BigQuery. I am importing the table using DirectQuery mode.
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.
I cannot import the data as it won't be the live version.
I also tried to write the DAX function using SEARCH, but that is not allowed either. Is there a workaround for this?
Solved! Go to Solution.
Hi @TheColdVolcano
Yes, There is limitation in Power BI's DirectQuery mode, especially with BigQuery. In DirectQuery mode, certain transformations like splitting a Datetime column into Date and Time parts or using certain string manipulation DAX functions (like SEARCH) are not supported directly because they can't be translated into native SQL for the underlying source.
Workaround Options
Option1:
Create calculated columns in BigQuery
Since transformations aren't allowed in Power BI with DirectQuery, push the logic to BigQuery by modifying the view or SQL query in BigQuery to return the split DATE and TIME parts separately.
SELECT
your_datetime_column,
DATE(your_datetime_column) AS date_part,
TIME(your_datetime_column) AS time_part
FROM your_dataset.your_table
Then point Power BI to this modified table or view using DirectQuery.
Option2:
If modifying the base table isn't possible, you can create a view in BigQuery that performs the splitting and then connect Power BI to that view.
🌟 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.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!
Hi @TheColdVolcano
Yes, There is limitation in Power BI's DirectQuery mode, especially with BigQuery. In DirectQuery mode, certain transformations like splitting a Datetime column into Date and Time parts or using certain string manipulation DAX functions (like SEARCH) are not supported directly because they can't be translated into native SQL for the underlying source.
Workaround Options
Option1:
Create calculated columns in BigQuery
Since transformations aren't allowed in Power BI with DirectQuery, push the logic to BigQuery by modifying the view or SQL query in BigQuery to return the split DATE and TIME parts separately.
SELECT
your_datetime_column,
DATE(your_datetime_column) AS date_part,
TIME(your_datetime_column) AS time_part
FROM your_dataset.your_table
Then point Power BI to this modified table or view using DirectQuery.
Option2:
If modifying the base table isn't possible, you can create a view in BigQuery that performs the splitting and then connect Power BI to that view.
🌟 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.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!
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 |
---|---|
11 | |
7 | |
2 | |
2 | |
1 |
User | Count |
---|---|
3 | |
3 | |
3 | |
2 | |
2 |