Forum Discussion
Date Slicer Returns Blank Results When Using Dim_Date to Fact Monthly Costs
- 9 months ago
Updated: Download example PBIX file
Add a column to your date table that is the first of the month for each date e.g.
Then use that First Date column in the date slicer. It will work fine with your month slicer, which is presumably getting the month from the same date table.
Phil
They have different names. One is Fact_Monthly so here I have aggregated data and second is Daily granularity, which is Fact_Daily.
I can not aggregate them because they are describing different granularity within model.
Best,
Jacek
Here two path you can go:
Option 1:
If you have two fact tables with different granularities and you are not comparing the two facts, you can use two separate date tables—one at monthly granularity and another at daily granularity.
Option 2:
If you need to compare the two facts, then aggregate your daily fact table using a GROUP BY to the monthly level and use a single monthly date table for both.
- jaryszek9 months ago
Super User
Thanks.
With option 1 would you connect dim_month with dim_date as 1 to many ?
Best,
Jacek