Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
25 | |
15 | |
14 | |
14 | |
9 |
User | Count |
---|---|
31 | |
20 | |
15 | |
15 | |
14 |