Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Column with date only

Hi,

Goal: looking for assistance to create and write dax code for a new column with date only from an existing column that has date and time.

 

Scenario: I have an existing column (screenshot) that has the date and time as the value. my data is connected via directquery.

 

Issue: I've tried many variations of dax code and none of them allow the data to populate correctly. Such as:

- date only column = DATEVALUE(LISTEMAIL[SCHEDULEDDATE])

- date only column = DATE(YEAR(LISTEMAIL[SCHEDULEDDATE]), MONTH(LISTEMAIL[SCHEDULEDDATE]), DAY(LISTEMAIL[SCHEDULEDDATE]))

 

any suggestions? thanks

 

Capture5.PNG

5 REPLIES 5
Kaviraj11
Super User
Super User

You can try and setup as a new source.

Kaviraj11_1-1714591492055.png

 

Power Query Snowflake connector - Power Query | Microsoft Learn




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Kaviraj11
Super User
Super User

Changing the data type of a column in Power BI while using Direct Query mode can be a bit tricky because Direct Query has some limitations. DirectQuery in Power BI - Power BI | Microsoft Learn

 

Are you using SQL Server as a Source?

If Yes, you can convert/cast the data type to Date in SQL Statement editor while connecting with server.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

i'm not trying to change the data type of the exisiting column. i am trying to create a new column with only the date and not the time from the existing column.

Yes, I understand that. However, if you are reading it from SQL Server, you can create a new column using convert/cast to transform the datetime column to date. It will be created as a seperate column and you can utilize that column in your report.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

oh i see now. okay yes, i'm connecting via snowflake. can i modify it after i already connected it or do i need to start the connection over from scratch?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.