Advertisement
Guest User

Untitled

a guest
May 26th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. WITH
  2. MEMBER [AgencyName].[fap] AS
  3. '[AgencyName].CurrentMember.Properties("Agency Code")'
  4. select NON EMPTY Crossjoin({[DepartureSeason].[All DepartureSeason], [DepartureSeason].[All DepartureSeason].[Winter], [DepartureSeason].[All DepartureSeason].[Summer]}, Crossjoin({[DepartureFiscalYear].[All DepartureFiscalYear].[2009], [DepartureFiscalYear].[All DepartureFiscalYear].[2010]}, {[Measures].[Nbr Passengers], [Measures].[Invoice YE], [Measures].[Invoice YTD], [Measures].[% su YTD], [Measures].[% su YE], [Measures].[Margin]})) ON COLUMNS,
  5. NON EMPTY Crossjoin({[AgencyRegion].[All AgencyRegion].[2-CentroSud].Children}, Crossjoin({[AgencyDistrict].[All AgencyDistrict].Children}, {[AgencyName].[All AgencyName].Children})) ON ROWS
  6. from [Bookings]
  7. where ([AgencyCategoryEnabled].[All AgencyCategoryEnabled].[Y], [AgencyExcluded].[All AgencyExcluded].[N], [AgencyPromoter].[All AgencyPromoter].[Jimmy])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement