如何在 MS Analysis Service 中显示列的最后一个值?
我有一个具有多个维度的立方体。我需要(测量、计算等......)来显示列的最后一个值,假设该表按另一列排序。
像这样的东西:
SELECT TOP 1 column_1 FROM table_1 WHERE «The user's selected dimentions will work as a filter» ORDER BY column_2 DESC
I have a cube with several dimensions. I need (a measure, calculation, whatever...) to show last value of a column, assuming the table is sorted by another column.
Something like:
SELECT TOP 1 column_1 FROM table_1 WHERE «The user's selected dimentions will work as a filter» ORDER BY column_2 DESC
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能会使用类似的
名称,其中带有 1 的名称引用您的
column_1
,带有 2 的名称引用您的column_2
。You would possibly use something like
where the names with 1 refer to your
column_1
, and those with 2 to yourcolumn_2
.