Emulate Aggregation Type 'None' in MDX
-
03 Mei 2012 7:09How can the Aggregation Type = None setting be emulated using pure MDX?
Josh Ash
- Diedit oleh Josh Ashwood 03 Mei 2012 7:10
Semua Balasan
-
03 Mei 2012 15:47
delete the
Calculatestatement from the beginning of your MDX Script. Without this statement, no aggregation will take place within the cube and you'll only see data at the intersection of the leaves of every dimension, as if every measure hadAggregateFunctionNone.
Convert DTS to SSIS | Document SSIS | 30+ SSIS Tasks | Real-time SSIS Monitoring | Quick Starts | BI Blitz- Disarankan sebagai Jawaban oleh MMilligan 03 Mei 2012 15:47
- Saran Jawaban dibatalkan oleh Josh Ashwood 03 Mei 2012 21:51
-
03 Mei 2012 21:52
That will do the entire cube. Not just a single measure.
Can you think of a way of being able to do a single measure, using an MDX Calculated Member?
Josh Ash
- Diedit oleh Josh Ashwood 03 Mei 2012 22:12
-
03 Mei 2012 22:51
I don't think you have any other choice than to scope your measure. Unfortunately, you'll probably need to have quite a few scope statements but you might be able to shorten it all using the DESCENDANTS function. something like this:
SCOPE([Measures].[Your Measure Here]);
SCOPE(DESCENDANTS([Your Dimension].[All],[Your Dimension].[Name of the leaf level],BEFORE);
This=Null;
END SCOPE;
--Repeat for all your dimensions
END SCOPE;You'll have to and inner scopes for all you dimensions. I haven't tried it, but in theory, it should work
Let me know if it does!
- Disarankan sebagai Jawaban oleh Jerry NeeModerator 05 Mei 2012 3:16
- Saran Jawaban dibatalkan oleh Josh Ashwood 05 Mei 2012 4:54
- Ditandai sebagai Jawaban oleh Josh Ashwood 05 Mei 2012 10:20
-
05 Mei 2012 10:20Thanks David, using SCOPE was the approach that worked. We did end up with quite bit of code though!
Josh Ash