Skip to Content
author's profile photo Former Member
Former Member

Distinct values in a dimension variable not showing up on aggregation

I want to show a report that identifies whether an employee has submitted time within the Closing date of any given month or not. The Closing date is basically the last week ending date of the month (last Saturday of the month).

I've managed to get what I want at an employee and timesheet level as shown below. However, when I try to summarize I get a #MULTIVALUE error.

I expect to see 2 records in the 2nd table one with Compliance Status (Monthly) = "Submitted Before Close" with Timesheet# = 3 and with "Submitted Before Close" and Timesheet# = 1.

Why is the "Compliance Status (Monthly)" column showing a #MULTIVALUE error?

Formula for the Variables used

[Compliance Status (Monthly)] =If [Time Submission Gap (Monthly)] >= 1 Then "Submitted After Close" Else "Submitted Before Close"


[Time Submission Gap (Monthly)]=DaysBetween(ToDate([Closing Week of Month] In ([Timesheet Month]);"yyyy-mm-dd");ToDate([Submitted Date];"yyyy-mm-dd"))

[Closing Week of Month]=Max([Timesheet End Date] ForEach ([Timesheet Month])) In ([Timesheet Month])

Note: The last 2 variables got converted to measure automatically.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jun 12, 2014 at 09:37 AM

    Hi Vivek,

    What you are expecting to see ?

    is it count([Submitted Before Close/ Submitted After Close])

    or details of Submitted Before Close/ Submitted After Close

    For count :

    [Compliance Status (Monthly)] =

    If [Time Submission Gap (Monthly)] >= 1 Then "Submitted After Close" Else "Submitted Before Close"


    count of employees Submitted After Close

    =count([Compliance Status (Monthly)] where ([Compliance Status (Monthly)] ="Submitted After Close") foreach([Employee]))


    count of employees Submitted Before Close

    =count([Compliance Status (Monthly)] where ([Compliance Status (Monthly)] ="Submitted Before Close") foreach([Employee]))


    For Details

    Restrict (Filter ) table with [Compliance Status (Monthly)] ="Submitted After Close"

    or

    [Compliance Status (Monthly)] ="Submitted Before Close"

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 12, 2014 at 09:55 AM

    Hi,

    Please check out doc: http://scn.sap.com/docs/DOC-54825

    I hope it helps you

    Kind Regards

    Koen

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.