문제

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