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

Help MDX Query - CurrentMember fo Range Date

$
0
0
Hi

What I need to do is calculate a measure based on a week range of each year.
I’ve already spent a lot of time trying to figure out how to solve the problem.

I’m trying the following MDX query.



with

// For each year ON ROWS calculate a subtotal of Cases from Week 1 to Week 4
set [Range Weeks] as '{[YearWeek].[Year].CurrentMember.[1] : [YearWeek].[Year].CurrentMember.[4]}'

member [Measures].[Partial Cases] as 'Sum([Range Weeks], [Measures].[Cases])'

select NON EMPTY {[Measures].[Partial Cases]} ON COLUMNS,
NON EMPTY {[YearWeek].[Year].Members} ON ROWS

from [SRAG]



But I’m getting the error: MondrianException: Mondrian Error:No function matches signature '1(<Member>)'



My dimension structure:

- YearWeek
--- Year
--- Week

Thanks in advance.

Viewing all articles
Browse latest Browse all 16689

Trending Articles



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