在我的SSRS报告中显示空白或空值

时间:2017-12-10 16:51:23

标签: reporting-services

我是SSRS Reporting Services的新手。我的报告运行良好,只是它没有显示nullblank个单元格。我知道有一些。我应该在此查询中添加什么来显示blank中的nullDistributionOwnerId?提前谢谢!

SELECT Id,
CONVERT(varchar(10), DistributionDate, 101) AS DistributionDate,
DistributionDate AS OriginalDistributionDate, 
MedDrugName AS DrugName,
MedDistributionSessionDescription AS Session,
DistributionOwnerId,
CASE a.[Status] 
    WHEN 0 THEN 'Success' 
    WHEN 1 THEN 'Refused By Inmate' 
    WHEN 2 THEN 'Inmate Did Not Show' 
    WHEN 3 THEN 'Inmate Not In Cell' 
    WHEN 4 THEN 'Security Lockdown'
    WHEN 5 THEN 'Medication Held (State Reason)' 
    WHEN 6 THEN 'Medication Out Of Stock' 
END AS Status, 
Notes, 
UserName,
(SELECT     NoteText + ';' AS Expr1
    FROM          MARDistAddNotes AS c
    WHERE      (a.Id = MARDistributionId) FOR XML PATH('')
) AS AdditionalNotes
, InmateLastName
, InmateFirstName
, InmateNumber
FROM         MARDistribution AS a
WHERE     (Status > 0)
ORDER BY DistributionDate, Session
SELECT CONVERT (DATE, GETDATE()) 'Date Part Only'

enter image description here

0 个答案:

没有答案