March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Here is some low-hanging fruit for someone...but would be a great help to end my frustration.
Pulling data in from an Oracle Database to Power BI. I need to ignore a bug in our Oracle Application that will at times write in a date of 01/01/4019 in the data. Went to Oracle to get this fixed and they told me they have it filtered out from the UI of the application, so I could go kick rocks, which is another reason why Oracle sucks. Moving on, the Field format in Power BI is mm/dd/yyyy if that matters. When that value appears in the Oracle data, I don't want it to appear in our reports in Power BI. So, I created a new column and turned to my simple IF statement that will substitute null for any values of January 1, 4019 that may come in, and will write in the date correctly if it is in the next 1,996 years:
Solved! Go to Solution.
Hi @pmdave , here you are:
RevisedDate =
IF (
'Activity Updates'[Date] = DATE ( 4019, 01, 01 ),
BLANK (),
'Activity Updates'[Date]
)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
Hi @pmdave , here you are:
RevisedDate =
IF (
'Activity Updates'[Date] = DATE ( 4019, 01, 01 ),
BLANK (),
'Activity Updates'[Date]
)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
ERD,
Thank you so much! That fixed it! I had tried using the DATE and DATESBETWEEN statements, but I know my syntax was much different trying to get it to work. Much appreciated!!!
Your date should be in quotation marks - try it out and let me know if it works 🙂
Thank you for your response Marianna!
This is one of the reasons I am confused. If I put single quotes around the date, Power BI thinks it is a table (understandable) and gives the error "Cannot find table '01/01/4019' ".
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
15 | |
7 | |
6 |
User | Count |
---|---|
33 | |
29 | |
16 | |
13 | |
12 |