简体   繁体   English

导出到excel的Ssrs之后无法平均获得excel

[英]Ssrs exporting to excel cannot average in excel afterwards

I have created a report in ssrs which shows values in a time format "14:03". 我已经在ssrs中创建了一个报告,该报告以时间格式“ 14:03”显示值。

So these values are generated in SSRS and then I export the report to excel and all the values are there and it displays fine in General format (Default format). 因此,这些值是在SSRS中生成的,然后我将报告导出到excel,并且所有值都在其中,并且在常规格式(默认格式)下显示正常。

Now once I have the excel file, I want to use the values in a average in excel. 现在,一旦有了excel文件,我就想在excel中使用平均值。 and get a Divide by zero error. 并得到除以零的误差。 So it is as if the cells don't have a value, but they have the time values. 好像这些单元格没有值,但它们具有时间值。 Even when I do a Count it shows "0" meaning it's not picking up that those cells have values. 即使当我做一个Count时,它也显示为“ 0”,这意味着这些单元格没有值。

I have tried changing the formats of the cells to copying and pasting them into a new sheet and even a new work book. 我尝试过更改单元格的格式,以将其复制并粘贴到新的工作表甚至新的工作簿中。 I tried tying in the average and then pressing cnrl + shft + enter, and that doesn't work either. 我尝试过平均,然后按cnrl + shft + enter,但这也不起作用。

Any ideas as to why and on how to resolve this without adding to the ssrs report. 关于为什么以及如何解决此问题而不添加ssrs报告的任何想法。 The users will do different calculations as they see fit, so I cannot really add the average calculation to the ssrs report. 用户将根据自己的需要进行不同的计算,因此我无法真正将平均计算添加到ssrs报告中。

Thank you in advance. 先感谢您。

Kind Regards Quinell 亲切的问候奎内尔

I suspect that Excel is seeing these as text fields so will not recognise them as times. 我怀疑Excel将它们视为文本字段,因此无法将它们识别为时间。 Your COUNT issue confirms this as this only counts numeric values (try COUNTA to see if you get a result). 您的COUNT问题证实了这一点,因为它仅计算数字值(尝试使用COUNTA来查看结果)。

I don't know if it will make any difference, but could you try to make the time hh:mm:ss instead of just hours and minutes before you export? 我不知道这是否会有所作为,但是您可以尝试在导出之前将时间设置为hh:mm:ss而不是几个小时和几分钟吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM