Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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 😫
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
29 | |
18 | |
15 | |
7 | |
6 |