Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi, some time ago I made a CALENDARAUTO() table for date reference. I use in every project i work (dCalendario)
But when I need to create a relationship between dCalendario.Date and table1.DueDate my DueDate field loses his Date type and show as Text type.
I cant use the fields Year or Month from dCalendario because their dont reference my DueDate.
Any idea to solve this? Thanks and sorry for my bad english
Solved! Go to Solution.
Hi @leandroparischi ,
Like this?
After creating relationship
This is normal. After the relationship is created using the date column, only the date column of one of the tables can use the hierarchy. You can do more tests yourself.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @leandroparischi ,
Like this?
After creating relationship
This is normal. After the relationship is created using the date column, only the date column of one of the tables can use the hierarchy. You can do more tests yourself.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
maybe it would be better to create some surrogate date key in both of tables with the same format with Power Query?
like "YYYYMMDD" formatted as text
Text.Combine({Text.From(Date.Year([Date])), Text.From(Date.Month([Date])), Text.From(Date.Day([Date]))})
@leandroparischi , Change the data type in edit query mode . If not under column property
@leandroparischi - That's really odd. Have you tried setting your columns in both tables back to Date or Date/Time.
@Greg_Deckler I tried do this in my DueDate field.
In Power Query, the Due Date field is categorized as a Date type. Shows the date icon and etc.
In the Column Tools tab, it shows the type as Date as well.
But it is not working as a date field and I believe that is the reason for my dCalendario table can't use DueDate field as reference.
@leandroparischi - I was thinking to try it in the "Column Tools" section of the ribbon when in Report view.
@leandroparischi , can share some sample screenshot
Sure.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
119 | |
78 | |
58 | |
52 | |
47 |
User | Count |
---|---|
170 | |
117 | |
63 | |
58 | |
51 |