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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi
I have a column in a table which has dates formatted as text (moved to the left hand side). I used Datevalue to convert them to dates. It did work but each date has time as well. I wonder if I can fornce Datevalue() to return only date. Thank you very much.
Solved! Go to Solution.
try to wrap with FORMAT,
= FORMAT(DATEVALUE(), "YYYY/MM/DD")
@lastnn30 Try:
Column =
VAR __Space = SEARCH(" ",[DateTime])
VAR __Date = LEFT([DateTime],__Space)
VAR __Result = DATEVALUE(__Date)
RETURN
__Result
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 45 | |
| 40 | |
| 32 | |
| 30 | |
| 21 |
| User | Count |
|---|---|
| 127 | |
| 125 | |
| 94 | |
| 78 | |
| 65 |