on 2016 Apr 05 5:39 PM
Hi All,
I need to extract data using bex query with a condition on start date and end date as .
Start date From 1/1/2000 to 1/31/2000
OR
End date from 1/1/2000 to 1/31/2000
Which is , all the records that has either startdate or end date as above . If a record has startdate as 1/21/2000and end date as 2/27/2000 or Null I want it to be captured .can youhelp with suggestions.
Thank you!
Hi Raja,
Follow this procedure.
Create a selection (lets say KF1) including your KF, with a filter on Start Date where you filter with the reuqired date range.
Create another selection (lets say KF2) including your KF with a filter on End Date where you filter with the reuqired date range.
Create one more selection ((lets say KF3) including your KF with one filter on Start date where you filter with the reuqired date range and another filter on End Date where you filter with the reuqired date range.
Then simply add a formula such as
KF4 = KF1 + KF2 - KF3.
KF4 is what you require.
Regards
Yasemin...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raja,
Follow the suggestion of Yasemin..I lack the subraction of values having both start and end date within the range..
For example: User chose JANUARY 1 - JANUARY 31..
START_DATE END_DATE VALUE
1/1 2/5 10
12/25 1/15 20
1/3 1/9 30
RESULT:
KF1 KF2 KF3 KF4
10 0 0 10
0 20 0 20
30 30 30 60 - 30 = 30
Regards,
Loed
Hi Yasemin,
Thank you for the response . Data I was refering is only characteristics I dont have any keyfigures.
Eg : Customer data (Name, address, startdate and enddate,.... ) . In some cases my dates will be null and start date and end date may not fall in same month in some cases.
Name Startdate Enddate
AAA 1/1/2000 Null
BBB 2/1/2000 1/3/2000
CCC 1/5/2000 3/2/2000
DDD null 1/8/2000
EEE Null Null
I need to select list of customers either started or ended in Jan2000 . In above data example I need to diaplay customers AAA,BBB,CCC and DDD in my report .
If I can use or condition directly . I can achive my report by applying condition as Start date between 1/1/2000 and 1/31/2000 or enddate betweeen 1/1/2000 and 1/31/2000.
Thanks,
Raja
Thank you for the response . Data I was refering is only characteristics I dont have any keyfigures.
Eg : Customer data (Name, address, startdate and enddate,.... ) . In some cases my dates will be null and start date and end date may not fall in same month in some cases.
Name Startdate Enddate
AAA 1/1/2000 Null
BBB 2/1/2000 1/3/2000
CCC 1/5/2000 3/2/2000
DDD null 1/8/2000
EEE Null Null
I need to select list of customers either started or ended in Jan2000 . In above data example I need to diaplay customers AAA,BBB,CCC and DDD in my report .
If I can use or condition directly . I can achive my report by applying condition as Start date between 1/1/2000 and 1/31/2000 or enddate betweeen 1/1/2000 and 1/31/2000.
Thanks,
Raja
Hi Raja,
If you apply the procedure as explained by Loed and Yasemin on any key figure the characteristics should get restricted automatically.
If you dont want see these KFs in your report then you can simply hide them.
If you dont have any KFs in your cube then used something like count etc.
Hope this helps.
-Swati.
User | Count |
---|---|
62 | |
12 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.