Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Web Intelligence
Viewing all articles
Browse latest Browse all 5402

How to count No of dates selected in prompt under date range function in WEBI.

$
0
0

Hi Folks,

 

When I select the Date Between function under prompts, I want to show From date to End date along with total number of days selected in report.

 

 

I user below user response to get this result and I'm not able to get possible result.

 

=ToDate( Substr( UserResponse("Enter value for Report Date (Start): "); 1; Pos(UserResponse("Enter value for Report Date (Start): ");"/"))+

Substr(UserResponse("Enter value for Report Date (Start): "); Pos(UserResponse(("Enter value for Report Date (Start): ");"/")+1;

(Pos(Substr(UserResponse("Enter value for Report Date (Start): "); Pos(UserResponse("Enter value for Report Date (Start): ");"/")+1;

Length(UserResponse("Enter value for Report Date (Start): ") ));" ")-1)); "MM/dd/yyyy")

 

 

Error Message on this code is: Enter is not a valid key

 

 

Expected Output will be should be like this.

 

 

Sales Report From: 01/12/2010 To: 31/12/2010

 

Total Number of Days: 31

 

 

Kindly suggest me how to hard code based on userresponse function.


Viewing all articles
Browse latest Browse all 5402

Trending Articles



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