Thursday, 1 May 2014

SSAS (SQL Server Analysis Services) Interview Questions - Part 3

SSAS (SQL Server Analysis Services) Interview Questions - Part 3



Q: How do you extract first tuple from the set?

Use could usefunction Set.Item(0)
Example:

SELECT {{[Date].[Calendar].[Calendar Year].Members
}.Item(0)}
ON 0
FROM [Adventure Works]
Q: How can I setup default dimension member in Calculation script?

You can use ALTER CUBE statement. Syntax:
ALTER CUBE CurrentCube | YourCubeName UPDATE DIMENSION , DEFAULT_MEMBER='';

No comments:

Post a Comment