Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Power BI data source from datalake
eg expression below
The data source date are in the uk format dd/MM/yyyy
When I process the cube for some reason it will convert the dates to US format if it can and leave the rest to UK format.
So we end up with mixed date formats in the cube. Which is incorrect.
Image below to demostrate.
2nd and 5th row it was swapped to MM/dd/yyyy while the 3rd row is dd/MM/yyyy.
Column one is the original date in text so we can compare while column two is the processed date.
But when we get data from sql server this issue doesnt occur. Image the correct behaviour getting from sql server.
So concluding this is the issue with the DeltaLake.Table(TableSource) function in m type. Anyone else having this issue ?
Solved! Go to Solution.
Hi @Anonymous ,
According to your description, there is mixed formatting when using M code to get the table from DataLake. The first thing we need to make clear is that the final data retrieved in the power query should be in the same format for each column, so your “mixed columns” are all recognized as US format, if you want them all to be in UK format, you can do a format conversion in m code
Source:{
"Type": "m",
"expression": [
"let",
" Source = AzureStorage.DataLake(...)",
" TTableSource" = Source{...}",
" ToDelta" = DaltaLake.Table(),
" ConvertedDates = Table.TransformColumns(ToDelta, {{"DateColumn", each Date.FromText(_, "en-GB"), type date}})",
"in",
" ConvertedDates"
]
}
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Anonymous ,
According to your description, there is mixed formatting when using M code to get the table from DataLake. The first thing we need to make clear is that the final data retrieved in the power query should be in the same format for each column, so your “mixed columns” are all recognized as US format, if you want them all to be in UK format, you can do a format conversion in m code
Source:{
"Type": "m",
"expression": [
"let",
" Source = AzureStorage.DataLake(...)",
" TTableSource" = Source{...}",
" ToDelta" = DaltaLake.Table(),
" ConvertedDates = Table.TransformColumns(ToDelta, {{"DateColumn", each Date.FromText(_, "en-GB"), type date}})",
"in",
" ConvertedDates"
]
}
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
13 | |
10 | |
8 | |
7 |
User | Count |
---|---|
17 | |
13 | |
7 | |
6 | |
6 |