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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

How to make DATE_M field as date field.

Hi All

when i check PQ , i notice below 2 filed are date field. include DATE_M field.

Paulyeo11_0-1609480540654.png

My table DATE_M field not indicate as date field. see the red box.

Paulyeo11_1-1609481492485.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

I think you may build a relationship between DATE_M column and other Date column in other tables.

If you build a relationship between date type column, you may be unable to use date hierachy in this column.

In my Sample:

1.png

Result:

2.png

You can try to remove relationship between Date_M and other Date columns.

3.png

If you need this relationship, you can duplicate Date_M in Power Query Editor named Date_M2, then you can use date hierachy in Date_M2.

Or you can add some calculated / custom column like Year, Quarter,Month,Day, then you can build date hierachy by yourself.

1.png

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

View solution in original post

12 REPLIES 12
PhilipTreacy
Super User
Super User

hi @Anonymous 

Can you link to your PBIX?  By email?

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Anonymous
Not applicable

Hi Phil

Can i have your email address ?

Paul

Anonymous
Not applicable

Hi @Anonymous 

I think you may build a relationship between DATE_M column and other Date column in other tables.

If you build a relationship between date type column, you may be unable to use date hierachy in this column.

In my Sample:

1.png

Result:

2.png

You can try to remove relationship between Date_M and other Date columns.

3.png

If you need this relationship, you can duplicate Date_M in Power Query Editor named Date_M2, then you can use date hierachy in Date_M2.

Or you can add some calculated / custom column like Year, Quarter,Month,Day, then you can build date hierachy by yourself.

1.png

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

Anonymous
Not applicable

Hi Rico

Wow you are good , you can visulise my issue . I will try it out later , many thank.

Paul

PhilipTreacy
Super User
Super User

Hi @Anonymous 

Amit's screenshot highlighted the formatting area on the menu, not the Data Type area.  I wanted to make sure you'd checked the correct section of menu.

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


PhilipTreacy
Super User
Super User

Hi @Anonymous 

You need to set the data type in the Data view/tab for the DATE_M column to Date.  As I showed in my last image

date-m.PNG

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Anonymous
Not applicable

Hi Phil

 

Since i already set the DATE_M as Date Type. But beside the DATE_M field , does not have date icon , why ?

 

Paul

PhilipTreacy
Super User
Super User

Hi @Anonymous 

It's the Data Type you need to check is set to Date, not the Formatting

date-m.PNG

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Anonymous
Not applicable

Hi All

How to make date icon appear at DATE_M field ?

Paulyeo11_0-1609489922021.png

 

amitchandak
Super User
Super User

@Anonymous , In options and setting, there is an option to clear cache, Try that.

 

If you still face that. And you are on Dec-2020, Then check of any know issue or log a new one :https://community.powerbi.com/t5/Issues/idb-p/Issues

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

@Anonymous , Check Data type in column tools. Once you click on column you should able to see the tab. It might have changed there. Change it to date , if it is text there.

 

Data Format New Rib.png

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi Amit

I have just check it is date format.  what else i need to do ?

Paulyeo11_0-1609482866905.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors
Top Kudoed Authors