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 all,
I'm looking to draw on your collective knowledge for an issue i'm experiencing. I've tried to find a solution in the forums, but havent found yet, so logging it myself.
I'm drawing logistical ETA timestamps which I then convert into a details to understand when it will be delivered. However, sometimes we have no ETA available and the underlying report provides a "-". Now my PBI is saying that all the lines with "-" have an error as the dash cannot be converted into a date.
Please help.
I'm not an expert with PBI, so any help is welcome.
Solved! Go to Solution.
In my example, the data type was Text before applying the Replace Values step. Upstream in your Power Query script, find the step that sets the data type for that column and change it to Text.
Proud to be a Super User!
Hi DataInsights,
I have the following step already in place:
= Table.SelectRows(#"Changed Type", each ([Legacy Record ID] <> null and [Legacy Record ID] <> "" and [Legacy Record ID] <> "-"))
Without success.
Additionally, when i try to use the 'replace values' function, and select to find "-" and replace with null, I get the message "enter a DateTime value", see screenshot below.
Thank you for thinking along.
In my example, the data type was Text before applying the Replace Values step. Upstream in your Power Query script, find the step that sets the data type for that column and change it to Text.
Proud to be a Super User!
That was it, brilliant, thank you!
In Power Query, add a step that replaces "-" with null. After this step, you should be able to convert the column to a DateTime value.
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
75 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
62 | |
59 | |
56 |