SSAS, dimension numeric value filtering

孤街浪徒 提交于 2020-03-03 12:58:13

问题


I am using the multiple dimensional model in SSAS with a seemingly simple requirement.

I have a Product dimension table with a Price attribute. Using Excel pivot-table, I want to filter this Price attribute, for example "greater than $1000". However the filter in the pivot table is a string only, hence I can not do perform any numerical comparison operations, but rather for equivalent strings, e.g. "$1,000.00".

My problem is similar to this thread, and I wonder if there is a solution/work around that I missed?

Best regards,

CT


回答1:


As suggested in the thread that you link, you could create a measure for the price, and then filter that. The definition of this calculated measure would be something like

[Product].[Product].Properties("Price", TYPED)

assuming the dimension as well as the attribute are named "Product", and the attribute has the price defined as a property named "Price".

(You define a property in BIDS as a relationship from the Product attribute to the Priice attribute.)



来源:https://stackoverflow.com/questions/20993052/ssas-dimension-numeric-value-filtering

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!