This will, I hope, be a basis for you to try and adapt and extend to your own requirements.
This is the smallest data warehouse that you are ever likely to meet, and it will, hopefully, process in a couple of seconds.