Question

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!

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top