Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 😫
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |