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.
Hello Everyone,
We are using a column which is date/time datatype. Which we need to use to create date column using the DAX expression with calculated column in Direct Query.
Joining date- 3/6/2021 4:18:56 PM
We want out put to be just date column like 3/6/2021 (Date datatype).
Below is what we tried,
Solved! Go to Solution.
Hi @Mahipal ,
Please try the following methods and check if they can solve your problem:
1.Create the simple table. Click on Transform Data.
2.Create the custom column to convert the Date/Time column to Date type.
= Text.From(Date.Month([Joining date]))&"/"&Text.From(Date.Day([Joining date]))&"/"&Text.From(Date.Year([Joining date]))
3.The Date type custom is shown below.
Solved: Change date format in DIRECT Query Mode - not on l... - Microsoft Fabric Community
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Mahipal ,
Please try the following methods and check if they can solve your problem:
1.Create the simple table. Click on Transform Data.
2.Create the custom column to convert the Date/Time column to Date type.
= Text.From(Date.Month([Joining date]))&"/"&Text.From(Date.Day([Joining date]))&"/"&Text.From(Date.Year([Joining date]))
3.The Date type custom is shown below.
Solved: Change date format in DIRECT Query Mode - not on l... - Microsoft Fabric Community
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
is there any way of converting a text (2/3/2024) to date datatype in direct query mode
I don't seem to have problems with that?
item is a text type.
DATEVALUE(), REPT(),FORMAT() and few more functions are not working for Directquery mode.
Have you tried DATEVALUE() ? Or DATE() ?
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
13 | |
11 | |
9 | |
6 |