Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

MDX with SQL

$
0
0
Hello MDX-specialist,
I'm using periods(day, week...) in my dashboards. For SQL and MDX query I'm using start and end date, which I'm getting from SQL query, if user selects period(as text). For export I do need that the data that includes also period - user doesn't know which processes for data extraction are used - he need to see parameters, which he can see on dashboard.

My MDX query:
member [ACTUAL DATE].[Previous] as
'Aggregate(([ACTUAL DATE].[2013-10-10] : [ACTUAL DATE].[2013-10-09]))'
member [ACTUAL DATE].[Actual] as
'Aggregate(([ACTUAL DATE].[2013-10-11] : [ACTUAL DATE].[2013-10-12]))'

set [data_selected] as 'Crossjoin({[att1].[All att1s].Children},{[att2].[All att2s].Children})'

select {[ACTUAL DATE].[Previous], [ACTUAL DATE].[Actual]} ON COLUMNS,
[data_selected] ON ROWS from [CUBE_AVG_AGG]
where {[Measures].[measure1]}

I need as output : period_name, previous, actual, att1, att2, measure1.

Many many thanks for any ideas!
timfu83

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>