Forum Discussion
Possible Tip/Trick: Dynamic Date Dimension Table
Thank you for the reply. I probably do not undestand the purpose of having a date table. I was expecting after establishing the link between my fact table and the date table, to use the slicers to filter my data in many different ways.
If establishing the relation is not needed, how can I use the date table to slice my data?
faacq you understand the purpose correctly, but not the method. You're trying to create a relationship with a month column, which is incorrect. You're supposed to create a relationship between a date column in your fact table and the main date column in the date table. Then you could use the month column as a slicer.
- faacq10 years agoRegular Visitor
You are right, using the date column I managed to establish the relation. When I try to slice my data It seems that the date table does not have any effect. My fact table has a column with "Month Year" info, but still I'm not able to slice my data with the columns available in the date table.
- Anonymous10 years agoNot applicable
faacq I think your problem will be solved if you just turn the date column in your data to a date, eg. if it is 201601 just change it to 1/1/2016
In terms of using it in the slicer, make sure you pull the date column from the date table into the slicer, not the date column from the data
let me know if that helps :)
- faacq10 years agoRegular Visitor
It worked, I established the relation between the date column in date.dim table and the date column in my fact table. I modified the content on the date column in my fact table from "Month" "year" to 01.01.2016. I update the data type in PowerBI to (MMM yyyy)
Thank you for your help