分析服务 2008:多维数据集 olap 中的小数截断
我正在研究olap立方体(使用分析服务2008)。在我的数据库中,我有一列(数据类型 =NUMBERS(40,30) )。在此列中,逗号示例后有 10 个数字的值:125.256987452122 或 159.2365894123658
在我的多维数据集 olap 中,该列与度量匹配。当我查看立方体中的值时, 我与数据库没有相同的值。示例:125.256987452122 ==>在立方体 125.2569 或 159.2365894123658 ==>在立方体 159.2365
即使我设置了度量属性 FORMATSTRING = ''### ### ### ### ##0.0000000000;-### ### ### ### ##0.0000000000'' 我得到这个结果 25.256987452122 ==>在立方体 125.2569000000 或 159.2365894123658 ==>在立方体 159.2365000000 中。
测量数据类型为 Double 。我将其更改为货币,但我遇到了同样的问题。
有人知道如何在我的多维数据集 olap 中获得与数据库中相同的结果吗: 159.2365894123658==>在立方体 159.2365894123658 ???
感谢您的回答
I'm working on olap cube (with analysis services 2008). In my database I have a column (datatype =NUMBERS(40,30) ). In this column there's values with 10 numbers after the coma example : 125.256987452122 or 159.2365894123658
In my cube olap, that column is match to a measure. When I look the values in the cube,
I don't have the same value with the database. example : 125.256987452122 ==> in cube 125.2569 or 159.2365894123658 ==> in cube 159.2365
Even when I set the measure property FORMATSTRING = ''### ### ### ### ##0.0000000000;-### ### ### ### ##0.0000000000'' I get this result 25.256987452122 ==> in cube 125.2569000000
or 159.2365894123658 ==> in cube 159.2365000000.
The mesure datatype is Double . I change it to currency but I have the same problem.
Did someone know how to get the same result as in the data base , in my cube olap :
159.2365894123658 ==> in cube 159.2365894123658 ???
Thanks for your answers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许不是最佳解决方案,但请考虑将数据以浮点形式存储在基础数据库中,或使用视图加载事实表以将其转换为浮点。除非您使用 Float,否则 SSAS 立方体将仅显示 4 位数字。
您可以通过在 DSV 中使用当前数据类型探索数据来验证这一点,它应该显示所有小数,但 SSAS 将仅显示 4 位数字。
Not an optimal solution perhaps, but consider storing the data in the underlying database as float, or use a view to load your fact table that converts it to float. SSAS cube will only show 4 digits unless you use Float.
You can verify this by exploring the data with your current datatype in the DSV, it should show all decimals, yet SSAS will only show 4 digits.