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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dbrandone
Helper III
Helper III

Date Table and Data Table not relating properly

I have a date table, I confirmed that it is marked as the date table, but whenever I use "Month Year" or any form of the date table in my visuals in conjunction with my data tables, the visuals do not seperate by date and instead show the sum total of the entire data table spread over all dates. I verified that the date column in my data table is in proper data type, "date/time". If I do not use the date table and instead use the date column in the table I am referencing in the visual, the data comes back perfect. The issue is that I want to use "Month Year" as the axis. I know that I can create a column in the data table that will pull the Month Year the way I want to, but I really want to figure out why I cannot use the date table in conjunction with my data tables if the date table and data tables have a relationship, the relationship is active and is one to many. 

 

Has anyone had this issue or now what the culprit is?

1 ACCEPTED SOLUTION

yes, it does matter: both fields must be the same type. If your data table contains date/time, you should create separate new columns for date and time in your data table (and then create a dimension table for time to join to the data time column). The date fields in both your date table and data table must be type date 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

3 REPLIES 3
PaulDBrown
Community Champion
Community Champion

the date field in your date table should be type date (not date/time). Both date fields in your date table and data table should incidentally be the same type





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






So the date column in the date field is set to "Date". Sorry, I mis wrote the original, the data table has a date/time designation. Does that make a difference? Can the date column of the date table be designated as "Date" and the data table date column be "date/time"? Time has to be in the data table time column for our needs. Below is the outcome I am getting sometimes as well. All of the data is coming back as blank instead of in the months they are supposed to be.

 

dbrandone_0-1625764736240.png

 

yes, it does matter: both fields must be the same type. If your data table contains date/time, you should create separate new columns for date and time in your data table (and then create a dimension table for time to join to the data time column). The date fields in both your date table and data table must be type date 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.