Привет все.
Есть запрос
[CSV][/CSV]
WITH
SET [AC] as {[Customer].[Country].&[Australia], [Customer].[Country].&[Canada]}
SET [FG] as {[Customer].[Country].&[France], [Customer].[Country].&[Germany]}
MEMBER [Customer].[Country].[AC] as Aggregate([AC])
MEMBER [Customer].[Country].[FG] as Aggregate([FG])
MEMBER [Список городов] as
GENERATE(EXISTS(EXISTING [Customer].[Country].[Country], ([Measures].[Internet Sales Amount])), [Customer].[Country].CurrentMember.Name, ',')
SELECT
{[Список городов], [Measures].[Internet Sales Amount], [Measures].[Customer Count]} ON 0,
{[Customer].[Country].[AC], [Customer].[Country].[FG]} ON 1
FROM [Adventure Works]
Результат
| Список городов | Internet Sales Amount | Customer Count | AC | Australia+Canada+France+Germany+United Kingdom+United States | 11 038 845.45 | 5 162 | FG | Australia+Canada+France+Germany+United Kingdom+United States | 5 538 330.05 | 3 590 |
|
Можно ли, и как, получить следующий результат
| Список городов | Internet Sales Amount | Customer Count | AC | Australia+Canada | 11 038 845.45 | 5 162 | FG | France+Germany | 5 538 330.05 | 3 590 |
|
Спасибо.