Forum Discussion
Relationship not getting created in a date table
- 5 years ago
Hi Anonymous ,
In other words, you want to get the sales data of the previous month, but the sales data of the previous month are in another fact table, so you need to create a date column, right?
Maybe you can use the "Append Queries" feature to merge the two fact tables.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If MONTH( dateincurrenttable ) is 1, then MONTH( dateincurrenttable ) - 1 = 0 and this is not allowed in DATE. Also, months do not have the same number of days, so if you happen to have a month with 31 days and the previous only had 30... then the DATE can't be created. There are many other issues with your approach (but I don't have time to explain them right now) so I'd kindly suggest you should abandon this way of coding. Please look for something more robust: time-intel functions.
Thanks Daxer. Yes, i understand the issues. and i worked out on multiple options but without any solutoin except that i get the result but i need to create different measures and just show the data in the card format. i was trying to show the data as bar graph with dates as axis.
Tahnks
- v-lionel-msft5 years agoCommunity Support
Hi Anonymous ,
In other words, you want to get the sales data of the previous month, but the sales data of the previous month are in another fact table, so you need to create a date column, right?
Maybe you can use the "Append Queries" feature to merge the two fact tables.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.