I'm trying to add a new measure to my OLAP cube, in SSAS.

The fact table is at the order detail level, so each row in the fact table represents an order and a product, like:

Order details
I'd like to add a measure that indicates the maximum number of days overdue per order number. So that measure should say:

OrderNo 1 -> 5 days overdue

OrderNo 2 -> 1 day overdue

OrderNo 3 -> 0 days overdue

I have tried using the MAX operator, with no success.

By the way, this is a multidimensional SSAS schema. I'm using SQL Server 2008.

Thanks in advance!

有帮助吗?

解决方案

Just define a measure "max days overdue" or how ever you want to call it in the cube designer, tab "cube structure". In the properties of the measure, use "Max" as the aggregate function. That's it.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top