CA Service Management

 View Only

Useful Universe Filters 

Jun 20, 2014 11:55 AM

Example:

 

 

 

Additions to Request Filters Class:

 

z_Opened - Over 30 days ago

@Select(Request Detail\Open Date) <PdmToday(-1,-30)

 

z_Opened – Last Month

@Select(Request Detail\Open Date) BETWEEN PdmToday(-1,1,-1) AND PdmToday(1,31,-1)

 

z_Resolved – Last Month

@Select(Request Detail\Resolve Date) BETWEEN PdmToday(-1,1,-1) AND PdmToday(1,31,-1)

 

z_Closed – Last Month

@Select(Request Detail\Close Date) BETWEEN PdmToday(-1,1,-1) AND PdmToday(1,31,-1)

 

z_Time Stamp –Request- Last 7 days

@Select(Request Activity\Time Stamp) BETWEEN PdmAddDays(-7) AND PdmAddDays(0)

 

 

Additions to Request Detail Class:

 

z_Affected_Service_Symbol

 

Name: z_Affected_Service_Symbol

Type: Character

Select: nr.name

Where: cr.affected_service=nr.id

 

Additions to Change Filters Class:

 

z_Scheduled End Date – Last Month

@Select(Change Detail\Schedule End Date) BETWEEN PdmToday(-1,1,-1) AND PdmToday(1,31,-1)

 

z_Time Stamp –Change- Last 7 days

@Select(Change Activity\Time Stamp) BETWEEN PdmAddDays(-7) AND PdmAddDays(0)

 

 

Additions to Key Performance Indicator\KPI Filters Class:

 

z_Kpi Ticket Data End Time - Last Month

@Select(Kpi Ticket Data\End Time) BETWEEN PdmToday(-1,1,-1) AND PdmToday(1,31,-1)

 

Additions to Survey\Survey Filters Class:

 

z_Survey Answer Last_Mod_Dt - Last Month

@Select(Survey Answer\Last Mod Dt) BETWEEN PdmToday(-1,1,-1) AND PdmToday(1,31,-1)

 

Additions to Resources\Resource Filters Class:

 

z_Creation Date - Last Month

@Select(Resource Detail\Creation Date) BETWEEN PdmToday(-1,1,-1) AND PdmToday(1,31,-1)

 

z_Delete Time - Last Month

@Select(Resource Detail\Delete Time) BETWEEN PdmToday(-1,1,-1) AND PdmToday(1,31,-1)

 

z_Last Modified Date - Last Month

@Select(Resource Detail\Last Modified Date) BETWEEN PdmToday(-1,1,-1) AND PdmToday(1,31,-1)

 

Additions to Resources\CMDB\CI Activity Log\CI Activity Log Filters Class:

 

z_Last Mod Dt - Last Month

@Select(CI Activity Log\Last Mod Dt) BETWEEN PdmToday(-1,1,-1) AND PdmToday(1,31,-1)

 

z_Time Stamp or System Time - Last Month

@Select(CI Activity Log\Time Stamp) BETWEEN PdmToday(-1,1,-1) AND PdmToday(1,31,-1)

 

z_Opened - Over 7 days ago

@Select(Request Detail\Open Date) <PdmToday(-1,-7)

 

z_Closed - in last 7 days

@Select(Request Detail\Close Date) BETWEEN PdmAddDays(-7) AND PdmAddDays(0)

 

z_Closed - Last Month

@Select(Request Detail\Close Date) BETWEEN PdmToday(-1,1,-1) AND PdmToday(1,31,-1)

Statistics
0 Favorited
3 Views
1 Files
0 Shares
3 Downloads
Attachment(s)
png file
Example.png   9 KB   1 version
Uploaded - May 29, 2019

Tags and Keywords

Comments

Jun 23, 2014 09:25 PM

Thank you for raising it Tammy.

Jun 23, 2014 06:02 PM

I just submitted an 'idea' for this --- please vote!

 

https://communities.ca.com/ideas/235713700

Jun 23, 2014 02:17 PM

That is true Tammy.   All in all PdmToday should be expanded from product functionality aspect for both Last Quarter (The True Last Quarter) and Last Week (The true Last week).  Maybe this is something that can be voted on by other folks in the community as well via a new Idea?

 

_R

Jun 23, 2014 11:58 AM


Hi Raghu,

 

I'll pass along the information to Joyce, who does our reporting.  But the suggestion for 'Last Week' sounds like you'd have to have a formula for every field on the report (which can be many), rather than a filter for the entire report.  So I don't that's going to be practical for us to do.

 

Tammy

Jun 23, 2014 10:31 AM

Tammy,

 

LAST_WEEK: Maybe this would help for WEBI Reports: Is there a way to report against Last Full Week's data in CA Service Desk Manager (CA SDM) using CA Business Intelligence (CABI) reports?

 

Out of the box CA SDM Universe in CABI exposes filters like Last 30 days, Last 7 days etc.,  but there is no direct option to report against the real Last Week. This document shows a way to expose this functionality over a Web Intelligence (WEBI) Report.

 

Take an example of a WEBI report, which has Open Date and Ref Num fields from Incident Details class of the CA SDM Universe.

 

Click on Open Date field on the right hand pane and then add this formula:

    =If [Open Date] <= RelativeDate(LastDayOfWeek(CurrentDate()); -7)

    And [Open Date] >= RelativeDate(LastDayOfWeek(CurrentDate());-13)

    Then [Open Date]

 

Then click on Ref Num field on the right hand pane and then add this formula:

    =If [Open Date] <= RelativeDate(LastDayOfWeek(CurrentDate()); -7)

    And [Open Date] >= RelativeDate(LastDayOfWeek(CurrentDate());-13)

    Then [Ref Num]

 

Now it should only show the Open Date and Ref Num of data for the real Last Week.

 

NOTE:

The significance of -13 and -7 are explained below. You could tweak the numbers to adjust to last week or last minus 2 week or last minus 3 week etc.,

RelativeDate(LastDayOfWeek([Field1]);-13) --> Start of Day of Last week's first day

RelativeDate(LastDayOfWeek([Field2]);-7) --> End of Day of Last week's last day

 

 

LAST_QUARTER

 

I don't think we have an easy one around this yet.   Maybe something like above needs to be written as a combination of WEBI Formula + Universe Filter  unless anyone have other ideas.

 

If its a defined approach (ex: 1st Quarter,  2nd Quarter etc.)  we have it documented in the CA Business Intelligence for CA Service Desk Manager   Chapter 15.

 

/* Sample start date ranges for testing in pdm_isql */

SELECT ref_num,

PdmToday(-1,-1) AS Yesterday_Start,

PdmToday(-1,1) AS MonthToDate_Start,

PdmToday(-1,1,-1) AS PreviousMonth_Start,

PdmToday(-1,1,1) AS FirstQuarter_Start,

PdmToday(-1,1,4,-1) AS LastYrSecondQuarter_Start

FROM in;

 

/* Sample end date ranges for testing in pdm_isql */

select ref_num,

PdmToday(1,-1) AS Yesterday_End,

PdmToday() AS MonthToDate_End,

PdmToday(1,31,-1) AS PreviousMonth_End,

PdmToday(1,31,3) AS FirstQuarter_End,

PdmToday(1,31,6,-1) AS LastYrSecondQuarter_End

FROM in;

Jun 23, 2014 05:50 AM

Anyone know how to create a filter for 'Last Week' (always Monday through Sunday)?   We're also in need of one for 'Last Quarter'.

 

Tammy

Jun 23, 2014 12:42 AM

Thanks Fred for sharing this information

Jun 20, 2014 01:18 PM

Fred...........

 

Thanks for sharing your CABI/BOXI report writing experise with the rest of the community.

 

Much appreciated!

Related Entries and Links

No Related Resource entered.