![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi I have a simple cube that is based on our Tills. We have a TransactionNo dimension that shows when this took place and how much it all came to etc. We also have a ItemNo dimension that lists all items in our stock table. We can easily see what was bought by placing the TransactionNo and ItemNo on the same Axis. However, I will shortly need to show what customers bought at the same time when they bought a certain item. IE what else did people who bought cheese buy. I am having trouble working out the correct way to approach this. I have this in MDX to see what was bought for 1 Transaction. I need to show all Transactions which have a certain Item. But I need to show all items for that transaction. SELECT { [Time].[All Time].CHILDREN } ON COLUMNS , NON EMPTY { { { [Journal No].[Journal No].&[18651].&[171051] } * { DESCENDANTS( [Item Number].[All Item Id], [Item Number].[Item Id] ) } } } ON ROWS FROM [Tills] WHERE ( [Measures].[Qty] ) Any ideas? |
#3
| |||
| |||
|
|
Hi I have a simple cube that is based on our Tills. We have a TransactionNo dimension that shows when this took place and how much it all came to etc. We also have a ItemNo dimension that lists all items in our stock table. We can easily see what was bought by placing the TransactionNo and ItemNo on the same Axis. However, I will shortly need to show what customers bought at the same time when they bought a certain item. IE what else did people who bought cheese buy. I am having trouble working out the correct way to approach this. I have this in MDX to see what was bought for 1 Transaction. I need to show all Transactions which have a certain Item. But I need to show all items for that transaction. SELECT { [Time].[All Time].CHILDREN } ON COLUMNS , NON EMPTY { { { [Journal No].[Journal No].&[18651].&[171051] } * { DESCENDANTS( [Item Number].[All Item Id], [Item Number].[Item Id] ) } } } ON ROWS FROM [Tills] WHERE ( [Measures].[Qty] ) Any ideas? |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Hi Thanks for the reply This is roughly what I need. I realise that I need to do this. The issue that I have is that I need to create a SET that is not straightforward to me. I need to Get all TransIDs which are relevant for an Item of Cheese. These are 2 seperate dimensions. So as I mentioned I need to have the result of this MDX SELECT { [Time].DEFAULTMEMBER } ON COLUMNS , NON EMPTY { DESCENDANTS( [Journal No].[All Journal No], [Journal No].[Trans Id] ) } ON ROWS FROM [Tills] WHERE ( [Item Number].[Item Id].&[Cheese], [Measures].[Qty] ) Then I need the recordset that this produces to be in a new MDX which Shows the result and all Items on one axis. My knowledge of MDX is as you can tell not the best so I appreciate any comments recieved. Rgds Alan Midwinter |
![]() |
| Thread Tools | |
| Display Modes | |
| |