Hi guys,
I get the error Infinite recursion detected but I have no idea what could be wrong to my query. COuld anyone help?
He complains about "[Measures].[Number of positive visit tasks completed1],"
WITHMEMBER [Measures].[Sales negative] AS
(
Iif(
IsEmpty(
[Measures].[Number of negative visit tasks completed]
),
False,
True
)
)
MEMBER [Measures].[Number of negative visit tasks completed1] AS
(
IIF(
IsEmpty(
[Measures].[Number of negative visit tasks completed]),
0 ,
[Measures].[Number of negative visit tasks completed]
))
MEMBER [Measures].[Number of positive visit tasks completed1] AS
Iif(
[Visit task type].[Task type] = [Visit task type].[Task type].&[POSVISITTASKSUBTYPES_Sales]="Sales"
or
[Visit task type].[Task type] = [Visit task type].[Task type].&[POSVISITTASKSUBTYPES_Visibility]="Visibility"
,Iif(
IsEmpty([Measures].[Number of positive visit tasks completed])
,0
,[Measures].[Number of positive visit tasks completed]
)
,Iif(
IsEmpty([Measures].[Number of positive e-mail confirmations])
,0
,[Measures].[Number of positive e-mail confirmations]
)
)
SELECT
{
NonEmpty(
[Point of sale].[POS id].[POS id]
* {
[Visit task type].[Task type].&[POSVISITTASKSUBTYPES_Sales],
[Visit task type].[Task type].&[POSVISITTASKSUBTYPES_Visibility],
[Visit task type].[Task type].&[POSVISITTASKSUBTYPES_Email]
}
* [Visit task check number].[Visit task check number].[Visit task check number],
{[Measures].[Number of visit tasks],[Measures].[Number of e-mail confirmations]}
)
} on rows,
{
[Measures].[Number of visit tasks],
[Measures].[Sales negative],
[Measures].[Number of negative visit tasks completed1],
[Measures].[Number of positive visit tasks completed1],
[Measures].[Number of positive visit tasks completed]
} on Columns
FROM
[RETAIL cube]
WHERE
{([Point of sale].[Client id].&[10014742]
,StrToMember("[Visit task type].[Bonus year].&["+LEFT(CStr([Date invoice].[Bonus calendar - Week].[Bonus week of year].&[2014]&[11].Parent.Member_value), 4) + "]")
)}