Creating a 1-1 relationship between fact table and date table

Euler59

New Member
Joined
Jun 26, 2014
Messages
1
My fact "sales" table contains transactions between 01/01/2011 and 06/30/2014. My date table contains consecutive dates from year 1998 to 2017. When I use year column from date table in a slicer all the year numbers prior to 2011 and after 2014 are displayed "greyed out" on the slicer. I will like to have only the years containing transactions displayed.
If I can create a 1-1 relationship (aka inner join) between the fact table and the date table, then my problem is resolved. But, how?

Thanks for any assistance,
Robert M.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
right click on the slicer and go to Slice Settings...click on hide items no data. This will get rid of all of the years without data.
 
Upvote 0
erin had the correct answer.

I will just add that... for performance reasons, you should really trim that calendar table to just a range of data you actually care about.
 
Upvote 0

Forum statistics

Threads
1,215,227
Messages
6,123,745
Members
449,116
Latest member
alexlomt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top