Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I'm new to Power BI and to the forum.
I'm pulling data from a PostgreSQL database where one of the fields is a Java Jodatime Period representation. (https://www.joda.org/joda-time/)
As can be seen from the screenshot below, this is stored in a varchar(255) as PT30M (representing a Period of 30 minutes.
Has anyone ever worked with converting Jodatime Date/Time representations to something that can be interperted by Power BI?
Thanks!
Solved! Go to Solution.
Hi @dmcnamee
To format the column, follow the steps below.
1. Click on abc123 icon in your column.
2. Select "Time" Data Type as below
Regards,
Mariusz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Marius,
That appears to have done the trick. Thanks!
However, the new Custom Column I just created is of type Text.
It would be great if it could be formatted to type Time
I've tried the following to convert it to Time
Time.FromText([parsed_total_time])
But it's giving an error:
Why is the error stating that it cannot convert the value to type Text, when I'm asking it to convert it to a type Time?
Many thanks,
Donal.
Hi @dmcnamee
To format the column, follow the steps below.
1. Click on abc123 icon in your column.
2. Select "Time" Data Type as below
Regards,
Mariusz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @dmcnamee
You can add a custom column in Query Editor, like below.
Regards,
Mariusz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
104 | |
69 | |
48 | |
41 | |
34 |
User | Count |
---|---|
164 | |
112 | |
62 | |
54 | |
38 |