Web i or deski?
In webI,You can find a report filter on the tool bar…
when you select that, you will be able to drag and drop the field on which you want to filter… In this case, drag and drop the Final object, Then you will be able to specify the condition you want to set… In your case, select In list from the operatot drop down and specify the values you want
In deski, just right click on your table and then select the option Format Filter.In that you can select the measure and then select the vlues you want to see
I am not sure if this will work for you but I had a similar issue way back when I was into deski, but you can give it a try -
Edit your variable. Keep it really simple for the time being like ‘=’. Now create your filter using the variable and apply it on the table. Again, edit to put in your original formula.
You can filter on a measure object too…
let me give you an example:
select ‘1’ A,20 B from dual
union
select ‘2’,40 from dual
union
select ‘3’,20 from dual
this is my source for the report…
Table in report is like this :
A B
1 20
2 40
3 20
I want to apply a filter in B (which is a measure) so that I get records whcih has only value as 20 (that is 1 and 3)
I now use A and B objects in the report. I create a table and right click o Format report. Now I add B and then define the condition in it:
Condition : ==20
The problem sounds like this:
I want me to show the trucks who are in a trip right now and if they are not, the last trip they made( the closest trip to the CurrentDate())
Example:
If i want to open the report today:
it will show me :
A--------17-03-2010 12:50---------19-03-2010 21:55 (because it’s in a trip right now)
B--------10-03-2010 13:33---------15-03-2010 20:00 (the last trip they made, closest trip to the CurrentDate())
Have any ideeas ?
Thank you and have a nice day,
Andrei Mircescu
do this at query level:
check this out:
Select tab.*, Case when (sysdate-d2) =(min(sysdate-d2) over(partition by vehicle)) then 1 else 0 end mins from
(Select ‘A’ vehicle, sysdate-6 d1, sysdate-2 d2 from dual
union
Select ‘A’ vehicle, sysdate-5 d1, sysdate-3 d2 from dual
union
Select ‘A’ vehicle, sysdate-1 d1, sysdate+1 d2 from dual
union
Select ‘B’ vehicle, sysdate-11 d1, sysdate-9 d2 from dual
union
Select ‘B’ vehicle, sysdate-10 d1, sysdate-5 d2 from dual
) tab
Now in the report apply filter where Mins =1…
This works…I tried it here