<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Resolving Multi-Value Error for Dates with Multiple Dimension Values in Calculation in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219855#M4573752</link>
    <description>&lt;P&gt;The start and end dates are parameters (&lt;STRONG&gt;DataType&lt;/STRONG&gt;: Date Time) created in the universe using a formula to get last month's begin and end dates. By default, that's the date prompt that is displayed when refreshing the report, but it is optional and can be changed by the user. &lt;/P&gt;&lt;P&gt;If I format the Begin and End Date in a report cell, I get &lt;STRONG&gt;08/01/2020 12:00:00:AM&lt;/STRONG&gt; and &lt;STRONG&gt;08/31/2020 12:00:00 AM&lt;/STRONG&gt; respectively. &lt;/P&gt;&lt;P&gt;For the multi-value error, what I was trying to say is, If I create a new report with just one object i.e &lt;STRONG&gt;Date&lt;/STRONG&gt; and then do &lt;STRONG&gt;TimeDim([Date])&lt;/STRONG&gt;, I get a multi-value error for some of the rows. That did not make sense to me, so I though that might have something to do with my issue. &lt;STRONG&gt;Date&lt;/STRONG&gt; is a DateTime object in the universe that tells me the date the account started.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 04:59:29 GMT</pubDate>
    <dc:creator>former_member672670</dc:creator>
    <dc:date>2020-09-28T04:59:29Z</dc:date>
    <item>
      <title>Resolving Multi-Value Error for Dates with Multiple Dimension Values in Calculation</title>
      <link>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaq-p/12219843</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;I am trying to create a Webi report with two columns - "&lt;STRONG&gt;Date&lt;/STRONG&gt;" and "&lt;STRONG&gt;Total Accounts&lt;/STRONG&gt;". The dates need to be continuous for one month (i.e. Jan 1, 2, 3, 4,.....31) which is why I created a variable using the TimeDim() function for my datetime object as follows.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;V_Start Date = TimeDim([Start Date])&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;Also, the date range needs to be between the previous month's beginning date and the previous month's end date i.e. August 1 - August 31. My query filter prompt has these two dates as parameters ('Begin Date' and 'End Date'), so I have filtered my report block using the variable shown below.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;V_Reporting_Period = If([V_Start Date] Between(UserResponse("Enter Begin Date") And UserResponse("Enter End Date]"))) Then 1 Else 0&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;I have created a variable to count the total accounts as follows.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;V_Total Accounts = Count([Account_ID];Distinct) ForEach([V_Start Date]))&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;This is how my report block looks like.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1843835-screen-shot-2020-09-20-at-24503-pm.png" /&gt;&lt;/P&gt;
  &lt;P&gt;As you can see, I am getting the multi-value error because there are multiple &lt;STRONG&gt;Account_ID &lt;/STRONG&gt;values for some of the dates. When I drag the &lt;STRONG&gt;Account_ID &lt;/STRONG&gt;dimension object to the report, the multi-value error disappears, but now there are multiple rows for the same date. &lt;/P&gt;
  &lt;P&gt;I want the report to display only one row for each date i.e. 8/1/20, 8/2/20, 8/3/20,...8/31/20. &lt;/P&gt;
  &lt;P&gt;Any ideas on how I can resolve the issue? Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2020 20:10:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaq-p/12219843</guid>
      <dc:creator>former_member672670</dc:creator>
      <dc:date>2020-09-20T20:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving Multi-Value Error for Dates with Multiple Dimension Values in Calculation</title>
      <link>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219844#M4573741</link>
      <description>&lt;P&gt;Can you also take a screenshot for sample data?&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2020 20:22:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219844#M4573741</guid>
      <dc:creator>ayman_salem</dc:creator>
      <dc:date>2020-09-20T20:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving Multi-Value Error for Dates with Multiple Dimension Values in Calculation</title>
      <link>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219845#M4573742</link>
      <description>&lt;P&gt;I have attached a screenshot of the actual vs the expected output below. As you can see on the right, I only want to see one row for each date.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1843836-screen-shot-2020-09-20-at-40731-pm.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2020 21:10:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219845#M4573742</guid>
      <dc:creator>former_member672670</dc:creator>
      <dc:date>2020-09-20T21:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving Multi-Value Error for Dates with Multiple Dimension Values in Calculation</title>
      <link>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219846#M4573743</link>
      <description>&lt;P&gt;I've made your example and I have no mistake.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1842785-t10.jpg" /&gt;&lt;/P&gt;&lt;P&gt;here are my variables:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Begin Date&lt;/STRONG&gt;:  =FormatDate(ToDate("08/01/2020";"MM/dd/yyyy"); "MM/dd/yyyyy")&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End Date&lt;/STRONG&gt;:     =FormatDate(ToDate("08/31/2020";"MM/dd/yyyy"); "MM/dd/yyyyy")&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V_Start Date&lt;/STRONG&gt;:   =FormatDate(TimeDim([Date]); "MM/dd/yyyy")&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V_Reporting_Period&lt;/STRONG&gt;:  =If(FormatDate([&lt;STRONG&gt;Date&lt;/STRONG&gt;]; "MM/dd/yyyyy") Between([Begin Date];[End Date])) Then 1 Else 0&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V_Total Accounts:    &lt;/STRONG&gt;=Count([ID];Distinct) ForEach([V_Start Date])&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;hopefully that helps&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2020 21:36:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219846#M4573743</guid>
      <dc:creator>ayman_salem</dc:creator>
      <dc:date>2020-09-20T21:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving Multi-Value Error for Dates with Multiple Dimension Values in Calculation</title>
      <link>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219847#M4573744</link>
      <description>&lt;P&gt;Thanks for sharing the example. I do have unique dates and the right counts in my report now. However, the filter for &lt;STRONG&gt;V_Reporting_Period&lt;/STRONG&gt; does not seem to work in the report block. I am getting all the dates from 2019 and 2020 as well.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2020 23:11:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219847#M4573744</guid>
      <dc:creator>former_member672670</dc:creator>
      <dc:date>2020-09-20T23:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving Multi-Value Error for Dates with Multiple Dimension Values in Calculation</title>
      <link>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219848#M4573745</link>
      <description>&lt;P&gt;it works for me.&lt;/P&gt;&lt;P&gt;Note the formula of "V_Reporting_Period&lt;STRONG&gt;"&lt;/STRONG&gt; in &lt;STRONG&gt;bold&lt;/STRONG&gt;. It is [&lt;STRONG&gt;date&lt;/STRONG&gt;] NOT [V_start date&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2020 23:58:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219848#M4573745</guid>
      <dc:creator>ayman_salem</dc:creator>
      <dc:date>2020-09-20T23:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving Multi-Value Error for Dates with Multiple Dimension Values in Calculation</title>
      <link>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219849#M4573746</link>
      <description>&lt;P&gt;Right, I did note that. The filter is still not working for me though. I also tried bringing the &lt;STRONG&gt;Date&lt;/STRONG&gt; object in a separate query, merging it with the &lt;STRONG&gt;Date &lt;/STRONG&gt;object from the original query, and then using the merged dimension. However, the filter is still not working. All the date objects in my report are DateTime objects, so I'm wondering if that has something to do with it. &lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 22:45:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219849#M4573746</guid>
      <dc:creator>former_member672670</dc:creator>
      <dc:date>2020-09-22T22:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving Multi-Value Error for Dates with Multiple Dimension Values in Calculation</title>
      <link>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219850#M4573747</link>
      <description>&lt;P&gt;Time has no effect.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1845835-filter1.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Can you share the formula you used?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 23:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219850#M4573747</guid>
      <dc:creator>ayman_salem</dc:creator>
      <dc:date>2020-09-22T23:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving Multi-Value Error for Dates with Multiple Dimension Values in Calculation</title>
      <link>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219851#M4573748</link>
      <description>&lt;P&gt;Here are my variables.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Begin Date&lt;/STRONG&gt; = FormatDate(ToDate(UserResponse("Start Date");"MM/dd/yyyy hh:mm:ss:a");"MM/dd/yyyy")&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End Date&lt;/STRONG&gt; = FormatDate(ToDate(UserResponse("End Date");"MM/dd/yyyy hh:mm:ss:a");"MM/dd/yyyy")&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V_Start Date&lt;/STRONG&gt; = FormatDate(TimeDim([Date]);"MM/dd/yyyy")&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V_Reporting_Period &lt;/STRONG&gt;= If(FormatDate([&lt;STRONG&gt;Date&lt;/STRONG&gt;]; "MM/dd/yyyyy") Between([Begin Date];[End Date])) Then 1 Else 0&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V_Total Accounts&lt;/STRONG&gt; = Count([ID];Distinct) ForEach([V_Start Date])&lt;/P&gt;&lt;P&gt;The '&lt;STRONG&gt;Date&lt;/STRONG&gt;' dimension in my query is a Date Time object. Can you not apply filter on a variable using the TimeDim function?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 04:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219851#M4573748</guid>
      <dc:creator>former_member672670</dc:creator>
      <dc:date>2020-09-25T04:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving Multi-Value Error for Dates with Multiple Dimension Values in Calculation</title>
      <link>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219852#M4573749</link>
      <description>&lt;P&gt;The problem is with the Begin and End dates.&lt;/P&gt;&lt;P&gt;Does the user enter the Begin and End dates with    hh:mm:ss AM/PM?    the ToDate(UserResponse("Start Date") should be exactly as user input in the prompt.&lt;/P&gt;&lt;P&gt;Add the &lt;STRONG&gt;V_Reporting_Period&lt;/STRONG&gt; to the table, and check the values 1 and 0&lt;/P&gt;&lt;P&gt;Also, check if the &lt;STRONG&gt;Begin date&lt;/STRONG&gt; and &lt;STRONG&gt;End date&lt;/STRONG&gt; are ok or not (put them in the report and refresh)&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 07:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219852#M4573749</guid>
      <dc:creator>ayman_salem</dc:creator>
      <dc:date>2020-09-25T07:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving Multi-Value Error for Dates with Multiple Dimension Values in Calculation</title>
      <link>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219853#M4573750</link>
      <description>&lt;P&gt;Yes, the user enters the Begin and End dates in &lt;EM&gt;hh:mm:ss AM/PM &lt;/EM&gt;format. I also checked the 0 and 1 values for &lt;STRONG&gt;V_Reporting_Period &lt;/STRONG&gt;by dragging it into the report&lt;STRONG&gt;. &lt;/STRONG&gt;It is displaying 1 for dates belonging to the year 2019 even though the Begin and End Dates are from '08/01/2020' - '08/31/2020'. &lt;/P&gt;&lt;P&gt;I also dragged the Begin and End dates to the report. They show up as '08/01/2020' and '08/31/2020' respectively. &lt;/P&gt;&lt;P&gt;I did notice that the '&lt;STRONG&gt;Date&lt;/STRONG&gt;' dimension object that is used in the TimeDim formula for &lt;STRONG&gt;V_Start Date&lt;/STRONG&gt; returns a multi-value error for some of the rows when I create a new variable: &lt;STRONG&gt;V_Date = TimeDim([Date]) &lt;/STRONG&gt;and use it by itself in the report. I thought it might have to do with the fact that '&lt;STRONG&gt;Date&lt;/STRONG&gt;' is a Date Time object, so I changed the data type to date. However, it still displays a multi-value error for some of the rows. I get the same behavior for &lt;STRONG&gt;V_Start Date &lt;/STRONG&gt;as well. Do you think that might have something to do with the issue?&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2020 04:33:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219853#M4573750</guid>
      <dc:creator>former_member672670</dc:creator>
      <dc:date>2020-09-27T04:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving Multi-Value Error for Dates with Multiple Dimension Values in Calculation</title>
      <link>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219854#M4573751</link>
      <description>&lt;P&gt;I don't really understand the purpose of the user entering the start and end dates with times (especially with :&lt;STRONG&gt;ss&lt;/STRONG&gt;) !!!. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is this a free entry or select from LOV.    If from LOV then you don't need to use &lt;STRONG&gt;ToDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can you format the text in a cell that contains the variable "Begin and End Date" to see what time it is displayed (format is date and time)?&lt;/P&gt;&lt;P&gt;Without knowing the data you have and the contents of the table, I cannot figure out what the problem of the multi-value error by the object [date] is.  &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2020 07:04:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219854#M4573751</guid>
      <dc:creator>ayman_salem</dc:creator>
      <dc:date>2020-09-27T07:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving Multi-Value Error for Dates with Multiple Dimension Values in Calculation</title>
      <link>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219855#M4573752</link>
      <description>&lt;P&gt;The start and end dates are parameters (&lt;STRONG&gt;DataType&lt;/STRONG&gt;: Date Time) created in the universe using a formula to get last month's begin and end dates. By default, that's the date prompt that is displayed when refreshing the report, but it is optional and can be changed by the user. &lt;/P&gt;&lt;P&gt;If I format the Begin and End Date in a report cell, I get &lt;STRONG&gt;08/01/2020 12:00:00:AM&lt;/STRONG&gt; and &lt;STRONG&gt;08/31/2020 12:00:00 AM&lt;/STRONG&gt; respectively. &lt;/P&gt;&lt;P&gt;For the multi-value error, what I was trying to say is, If I create a new report with just one object i.e &lt;STRONG&gt;Date&lt;/STRONG&gt; and then do &lt;STRONG&gt;TimeDim([Date])&lt;/STRONG&gt;, I get a multi-value error for some of the rows. That did not make sense to me, so I though that might have something to do with my issue. &lt;STRONG&gt;Date&lt;/STRONG&gt; is a DateTime object in the universe that tells me the date the account started.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 04:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/resolving-multi-value-error-for-dates-with-multiple-dimension-values-in/qaa-p/12219855#M4573752</guid>
      <dc:creator>former_member672670</dc:creator>
      <dc:date>2020-09-28T04:59:29Z</dc:date>
    </item>
  </channel>
</rss>

