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.
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 😫
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 |
---|---|
11 | |
9 | |
7 | |
6 | |
5 |
User | Count |
---|---|
20 | |
11 | |
10 | |
9 | |
6 |