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.
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! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
15 | |
12 | |
11 | |
8 |
User | Count |
---|---|
24 | |
17 | |
11 | |
11 | |
10 |