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 the source data.
Solved! Go to Solution.
Hi @MarkH ,
Here some steps that I want to share, you can check them if they suitable for your requirement.
Using DAX to create a calculate table:
Just Source = DATATABLE (
"StartDate", DATETIME,
"EndDate", DATETIME,
{
{ "16/03/2023 09:00", "16/03/2023 17:30" },
{ "16/03/2023 14:00", "16/03/2023 17:30" },
{ "17/03/2023 09:30", "17/03/2023 12:30" },
{ "16/03/2023 09:00", "17/03/2023 17:00" },
{ "16/03/2023 09:00", "20/03/2023 17:00" },
{ "16/03/2023 09:00", "20/03/2023 12:30" },
{ "16/03/2023 14:30", "20/03/2023 12:30" },
{ "17/03/2023 14:30", "20/03/2023 12:30" },
{ "16/03/2023 09:00", "27/03/2023 17:00" },
{ "02/03/2023 09:00", "27/03/2023 17:00" }
}
)
1.Select the field in the Modeling view, and then select the dropdown arrow under Format in the Properties pane.
2.Once you've selected Custom from the Format dropdown menu, choose from a list of firstformat.
3.Repeat the step1 and 2 and apply to another column
4.Final output
Best Regards,
Albert He
Hi @MarkH ,
Here some steps that I want to share, you can check them if they suitable for your requirement.
Using DAX to create a calculate table:
Just Source = DATATABLE (
"StartDate", DATETIME,
"EndDate", DATETIME,
{
{ "16/03/2023 09:00", "16/03/2023 17:30" },
{ "16/03/2023 14:00", "16/03/2023 17:30" },
{ "17/03/2023 09:30", "17/03/2023 12:30" },
{ "16/03/2023 09:00", "17/03/2023 17:00" },
{ "16/03/2023 09:00", "20/03/2023 17:00" },
{ "16/03/2023 09:00", "20/03/2023 12:30" },
{ "16/03/2023 14:30", "20/03/2023 12:30" },
{ "17/03/2023 14:30", "20/03/2023 12:30" },
{ "16/03/2023 09:00", "27/03/2023 17:00" },
{ "02/03/2023 09:00", "27/03/2023 17:00" }
}
)
1.Select the field in the Modeling view, and then select the dropdown arrow under Format in the Properties pane.
2.Once you've selected Custom from the Format dropdown menu, choose from a list of firstformat.
3.Repeat the step1 and 2 and apply to another column
4.Final output
Best Regards,
Albert He
however, that creates the columns as text & when you convert them to datetime the original problem reappears 😪
Fixed it by not using DATATABLE and forcing a format. (You cannot format using DATATABLE)
Hi, @MarkH
use column tools
in column tools choose format option and select dd/mm/yyyy or as you want
I had tried that & unfortunately it doesn't work.
wierd 😫
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
21 | |
17 | |
12 | |
6 | |
5 |
User | Count |
---|---|
29 | |
25 | |
20 | |
13 | |
10 |