SSRS 2008如何显示自定义Axis

时间:2016-11-24 09:07:25

标签: sql-server reporting-services ssrs-2008

我一直试图在ssrs中绘制下面的excel图表 如何显示等待的时间,以便我可以绘制线图以比较成人等待和孩子等待。这是使用的表(excel中使用的数据)

DECLARE @CheckIN AS TABLE (CheckINDate DATE, CheckInTime VARCHAR(10),   MinsWaitKid INT,  MinsWaitAdult INT);
INSERT INTO @CheckIN VALUES     
    ('17/10/2016','00:54:21','3261','1620'),
    ('19/10/2016','00:52:32','3152','1617'),
    ('21/10/2016','00:52:08','3128','1564'),
    ('24/10/2016','00:51:45','3105','1591'),
    ('20/10/2016','00:50:56','3056','1548'),
    ('13/10/2016','00:50:47','3047','1565'),
    ('15/10/2016','00:50:31','3031','1615'),
    ('18/10/2016','00:48:17','2897','1455'),
   ('23/10/2016','00:43:30','2610','1636'),
    ('14/10/2016','00:43:14','2594','1560'),
    ('26/10/2016','00:38:17','2297','1602'),
    ('25/10/2016','00:32:48','1968','1327'),
    ('16/10/2016','00:30:09','1809','1598'),
    ('22/10/2016','00:18:57','1137','1635')

    SELECT * FROM @CheckIN

请参阅下面的excel图表enter image description here

1 个答案:

答案 0 :(得分:1)

我最近也遇到过这个问题并且没有一个很好的解决方案,但是我确实这样做了: 在垂直轴属性(图表中)> 数字> 自定义您可以为轴设置自定义格式。您可以将其设置为以下表达式:

="0" + CStr(Int(Fields!MinsWaitAdult.Value/3600)) 
    + ":" + CStr(Int(Fields!MinsWaitAdult.Value/60)) 
    + ":" + RIGHT("0" + CStr(Fields!MinsWaitAdult.Value MOD 60), 2)

enter image description here