Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

Mdx to return all rows from fact-table?

$
0
0

Hi!

I want to create a report in SSRS that executes a mdx to a SSAS cube.

The "problem" is that I want all fact-rows (no summary) for a particular period.

Example:

MyFactTable
-----------------
* FactKey
- TimeKey
- ProductKey
- StoreKey
Amount

Sample data:
FactKey, Timekey, ProductKey, StoreKey, Amount
1, 100, 10, 101, 500
2, 100, 10, 101, 600
3, 100, 10, 101, 800
4, 100, 10, 102, 700
5, 100, 11, 101, 600
6, 101, 10, 101, 400

Say i want to get all rows from this fact-table where TimeKey=100.

If I create a mdx like:
SELECT ProductKey*StoreKey on 0, Amount on 1 from MyFact
WHERE ...

i will get:
10, 101, 1900
10, 102, 700
11, 101, 600

but I want:
10, 101, 500
10, 101, 600
10, 101, 800
10, 102, 700
11, 101, 600

Is that possible (without using drill through)?


Viewing all articles
Browse latest Browse all 14337

Trending Articles