Forum Discussion
Calendar functions
- 8 years ago
You can do both way but with DAX it would be somethig like:
DateOnly = DATE( Year(Table[DateAdded]), Month(Table[DateAdded]), Day(Table[DateAdded[) )
Change the data type to date in modelling tab and then set relationship onthis column with your "master data" date column.
You need to add another column in your data table to for date, you current dateadded column is date and time and the relatedionship with master date is not working because of the time
Add another calculated column for dateadded which is just date and then set relationship on this column with master date table.
parry2k Hi, Do i have to add it in modelling tab or query editor ? What will be the script for calculated column..Could you please guide me. Thank you for your time.
- parry2k8 years agoSuper User
You can do both way but with DAX it would be somethig like:
DateOnly = DATE( Year(Table[DateAdded]), Month(Table[DateAdded]), Day(Table[DateAdded[) )
Change the data type to date in modelling tab and then set relationship onthis column with your "master data" date column.
- MadhuReddy8 years agoHelper I
parry2k Ok, I am on modelling tabe and create new tabel is that right ?
- parry2k8 years agoSuper User
there is new column option when you click on home tab in the menu. make sure your correct table is selected in right pane before adding new column