below is my query for the report, and i want all columns label to display in table report even if there is no data populated for that column. so am selecting Status, daysinservicingstatus and UPB. so now i have to put the daysinservicingstatus in a range with it UPB.
SELECT SG_SRStatus AS SG_SRStatus,
LS.LS_DaysInServicingStatus,
SUM(ls.SG_UPB) 'SUM UPB',
CASE WHEN LS.LS_DaysInServicingStatus BETWEEN '0' AND '179'
THEN '0-179 Days'
WHEN LS.LS_DaysInServicingStatus BETWEEN '180' AND '209'
THEN '180-209 Days'
WHEN LS.LS_DaysInServicingStatus BETWEEN '210' AND '239'
THEN '210-239 Days'
WHEN LS.LS_DaysInServicingStatus >= '240'
THEN '240+ Days'
END AS days
FROM dbo.LoanSummary(nolock) ls
WHERE SG_SRStatus IN (
'Matured-Death',
'Matured-In Foreclosure',
'Matured-Tax Default',
'Matured-Move Out')
GROUP BY SG_SRStatus, LS.LS_DaysInServicingStatus
ORDER BY SG_SRStatus
below is my result set in ssrs: ( because there is no days between the rang of 210 -239days and 240+ days, . this is not showing in the table but i want to show those two columns even if there is no data.
but i want to have all the columns display like this table below using Matrix even if there is no data populated in that column.