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
Hi all!
I have a column in a oracle DB that contains the date in the format YYYYDDD.
To performane an incremental refresh, I need to translate this format into YYYY-MM-DD, but how?
Instead of converting your date column, you can convert your RangeStart and RangeEnd parameters, and then use those values in your filter step. It will still fold. Here is an example.
let
RSasYYYYDDD = 1000 * Date.Year(RangeStart) + Date.Day(RangeStart),
REasYYYYDDD = 1000 * Date.Year(RangeEnd) + Date.Day(RangeEnd),
Source = Sql.Database("localhost", "Flights", [CreateNavigationProperties=false]),
dbo_Date = Source{[Schema="dbo",Item="Date"]}[Data],
#"Filtered Rows" = Table.SelectRows(dbo_Date, each [Date] >= RSasYYYYDDD and [Date] < REasYYYYDDD)
in
#"Filtered Rows"
Pat
let
Source = Table.FromRows(
Json.Document(
Binary.Decompress(
Binary.FromText("i45WMjIwMjIwMFSK1YGwDc1MlWJjAQ==", BinaryEncoding.Base64),
Compression.Deflate
)
),
let
_t = ((type nullable text) meta [Serialized.Text = true])
in
type table [Column1 = _t]
),
#"Added Custom" = Table.AddColumn(
Source,
"Custom",
each Date.ToText(
Date.AddDays(
Date.From(Text.Start([Column1], 4) & "-01-01"),
Int32.From(Text.End([Column1], 3)) - 1
),
"yyyy-mm-dd"
)
)
in
#"Added Custom"
If you are concerned about query folding then you need to do the transforms on the Oracle side, writing your own native query.
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 |
---|---|
21 | |
16 | |
13 | |
12 | |
9 |
User | Count |
---|---|
34 | |
31 | |
20 | |
19 | |
17 |