Calculated Time Periods Hierarchy

  • please help me figure out why I'm getting the following error:

    I need to create Calculated Member for "yesterday", "current month", "current year", but but I keep getting an error message

    please help me figure out why I'm getting the following error:

    "A set has been encountered that cannot contain calculated members."

    I have Attributes "Dates" and Hierarchies "Calendar" (YearID/QuarterId/MonthId/dtDate)

    Calendar

    I created  Calculater Member "Current Month" for Parent hierarchy "Dates.Calendar.[all]"

    Yesterday

    CREATE MEMBER CURRENTCUBE.[Dates].[Calendar].[All].[Current Month]
    AS StrToMember("[Dates].[Calendar].[Month Id].&[" + Format(now(), "yyyyMM") + "]"),
    VISIBLE = 1 ;

    I'm getting an error

    at the same time I built Named Set CurrentMonth and it works without problems

    CREATE SET CURRENTCUBE.[CurrentMonth]
    AS StrToMember("[Dates].[Calendar].[Month Id].&[" + Format(now(), "yyyyMM") + "]");

    it's important to me that there is a Calculated Member and not a Named Set

    Thank you in advance

     

     

     

     

    • This topic was modified 11 months, 1 week ago by  ElviraD.
  • Thanks for posting your issue and hopefully someone will answer soon.

    This is an automated bump to increase visibility of your question.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply