display all month even no data for few. I have only 3 months of data, but need to show all twelve months in my report. How can I show the missing data?
-
I tried implementing by adding calendar table and left outer join to sales table on Calander Date and sales Date and use Calander month instead of sales month period in the report.but when I try to join other dimension table then my outer seem not working.
-
Other way I tried bring calender month and calendar date in differen query. Merge calender month.
When I try to bring other dimension it says Multivalue. -
Is there a way I can replicate at report level
SELECT left(datename(month,getdate()), 3)
UNION ALL
SELECT left(datename(month, DATEADD(MM,-1,getdate())), 3)
UNION ALL
SELECT left(datename(month, DATEADD(MM,-2,getdate())), 3)
UNION ALL
SELECT left(datename(month, DATEADD(MM,-3,getdate())), 3)
UNION ALL
SELECT left(datename(month, DATEADD(MM,-4,getdate())), 3)
UNION ALL
SELECT left(datename(month, DATEADD(MM,-5,getdate())), 3)
UNION ALL
SELECT left(datename(month, DATEADD(MM,-6,getdate())), 3)
UNION ALL
SELECT left(datename(month, DATEADD(MM,-7,getdate())), 3)
UNION ALL
SELECT left(datename(month, DATEADD(MM,-8,getdate())), 3)
UNION ALL
SELECT left(datename(month, DATEADD(MM,-9,getdate())), 3)
UNION ALL
SELECT left(datename(month, DATEADD(MM,-10,getdate())), 3)
UNION ALL
SELECT left(datename(month, DATEADD(MM,-11,getdate())), 3)
UNION ALL
SELECT left(datename(month, DATEADD(MM,-12,getdate())), 3)
RUC (BOB member since 2010-05-03)