Skip to content

How To: Finance Date Functions in EDW

Do you ever get tired of building complicated date logic in your EDW queries?

The EDW now supports several finance date functions to help you simplify your queries! These functions help enterprise data users to easily convert calendar dates, months, and years to UW fiscal calendar objects. These functions are most helpful to SQL developers working on reports and visualizations that use fiscal calendar parameters/variables.

Context: 

In SQL, a function is a program that takes some input and generates a value. SQL has many built-in functions that you get out-of-the-box.  For example, one of the built-in system functions is GETDATE().  This function returns the current date and does not require an input or argument. Another example of a system function is REPLACE(), which expects to have 3 inputs, 1. The expression you want to search (i.e. column or field), 2. what you are searching for, and 3. what you want to replace it with.

The UW-IT EDW team recently added 5 new functions to the EDW. The following functions are now available to use:

Function and Syntax Description
FiscalYear(date) Returns the fiscal year as a number based on the date input you provide.
FiscalMonth(date) Returns the fiscal month as a 2-character string based on the date input you provide.
BienniumYear(date) Returns biennium year as a number based on the date input you provide.
BienniumMonth(date) Returns biennium month as a 2-character string based on the date input you provide.
LastMonthEndDate(date) Returns last date of the prior calendar month based on the date input you provide.

How you can use these functions today: 

If you ever do your own calculations in SQL to determine things like Fiscal Year or Biennium start or end dates, or create a rolling window, then you might benefit from using these functions.

These functions reside in EDWPresentaton database.  To call a function simply follow examples below:

SELECT 
EDWPresentation.dbo.FiscalYear('4/4/2018') as FiscalYear,
EDWPresentation.dbo.FiscalMonth('4/4/2018') as FiscalMonth,
EDWPresentation.dbo.BienniumYear('4/4/2018') as BienniumYear,
EDWPresentation.dbo.BienniumMonth('4/4/2018') as BienniumMonth,
EDWPresentation.dbo.LastMonthEndDate('4/4/2018') as LastMonthEndDate

Please Note:

  • When functions are used as parameters in a report or visualization, they should be set as variables.
  • Also, the BienniumMonth function returns values ranging from 01-24; however, UW accounting months are 01-25 or in previous years may even have fallen between 01-27. This happens because some transactions are entered in a new biennium, but should be attributed to the prior one. Examples below show how to use functions in variables and how to handle accounting months

Examples

SQL – if parameters are start and end dates

--Report parameters DECLARE @MyDate date = '4/4/2018' 
DECLARE @FiscalYear varchar(4) = EDWPresentation.dbo.FiscalYear(@MyDate)  DECLARE @AcctngMonth int = 
case 
   when EDWPresentation.dbo.BienniumMonth(@MyDate) = '24' 
      then '27'  
   else EDWPresentation.dbo.BienniumMonth(@MyDate) 
end DECLARE @BienniumYear varchar(4) = EDWPresentation.dbo.BienniumYear(@MyDate) SELECT @FiscalYear FiscalYear, @BienniumYear BienniumYear, @AcctngMonth AcctngMonth

SQL – if parameters are month and year

--Report parameters DECLARE @calmonth int = 9 DECLARE @calyear int = 2017 

--Converting calendar month and year to a date that can be used by functions
DECLARE @MyDate 
   date = convert(date, convert(varchar(4),@calyear) + '-' + convert(varchar(2),
       @calmonth) + '-01') 
DECLARE @FiscalYear varchar(4) = EDWPresentation.dbo.FiscalYear(@MyDate)  DECLARE @AcctngMonth int = 
case 
   when EDWPresentation.dbo.BienniumMonth(@MyDate) = '24' then '27'  
      else EDWPresentation.dbo.BienniumMonth(@MyDate) 
end
DECLARE @BienniumYear varchar(4) = EDWPresentation.dbo.BienniumYear(@MyDate)
SELECT @FiscalYear FiscalYear, @BienniumYear BienniumYear, @AcctngMonth AcctngMonth

SQL – rolling window (2 years back from end date)

--Report parameters DECLARE @EndDate date = '4/4/2018'
 --Converting end date into a 2-year rolling window  DECLARE @LastMonthEndDate date = EDWPresentation.dbo.LastMonthEndDate(@EndDate)
DECLARE @BienniumYear varchar(4) = EDWPresentation.dbo.BienniumYear(@LastMonthEndDate)
DECLARE @AcctngMonth varchar(2) = 
case 
   when EDWPresentation.dbo.BienniumMonth(@LastMonthEndDate) = '24' then '27'  
      else EDWPresentation.dbo.BienniumMonth(@LastMonthEndDate) 
end 
DECLARE @EndRollingPeriod varchar(6) = @BienniumYear + @AcctngMonth DECLARE @StartRollingPeriod varchar(6) = CONVERT(varchar(4), CONVERT(int, @BienniumYear)-2) + @AcctngMonth SELECT @StartRollingPeriod, @EndRollingPeriod

Questions:

If you have any questions about functions or how to use them in your solution, please write help@uw.edu and put “EDW Feature: Finance Date Functions” in the subject line.

Financial Activity 2019 Cube Update: New Attributes on Finance Cube

Based on input from users, we just published updates to the Financial Activity Biennium 2019 cube (finance cube). We added several new attributes to the cube that make it easier to get the finance data you need to do your work.

In addition to the cube changes, we also want you to know about some other great content we recently published!

  • Data Definitions: Finance cube data definitions are now in Knowledge Navigator
  • Training/Help Videos: We recently published a suite of videos to help you answer several common use cases with the finance cube. Check out our Finance Data Cube Resources page (EDW Access required).

Change Summary:

In this release we added several attributes to existing cube dimensions. These fields were added to support users that want to migrate from using BI Portal finance reports to the cube. If you’re tired of running a report, then exporting the data, filtering, and organizing it in the format you want, consider using the finance cube!

We added the following attributes to the Org-Budget Dimension in the “More Fields” grouping:

  • Budget Status
  • Old Budget Nbr
  • Parent Budget Nbr
  • Current Period Begin Date
  • Current Period End Date
  • Grant Tracking Nbr
  • Grant Contract Nbr
  • Total Period Begin Date
  • Total Period End Date

More Changes Are Coming:

We are currently designing a new Financial Activity Biennium 2019 cube. This new cube design will still provide you the data you need to do your work, but it will consolidate several dimensions, improve some of the dimension and attribute names, and overall make the cube easier to use!

In addition to the finance cube redesign, we are also preparing to release a new Financial Activity cube for Biennium 2021 in the next fiscal year. Please stay tuned for more information about the new cube.

If you would like to get involved with the finance cube redesign and share your feedback with the BI Team through our user review sessions, please write us at help@uw.edu with “BI Portal: Finance Cube Redesign” in the subject line.

Questions:

The finance cube references core institutional concepts like Budget Number, Account Code, and so many others. For definitions to these and other institutional terms, please explore Knowledge Navigator!

As always if you have any questions or feedback, please write help@uw.edu with “BI Portal: Financial Activity 2019 cube” in the subject line!

RPG Release: Student Groups on Satisfactory Progress Policy Report

Based on user feedback, the Report Prioritization Group just released an update to the report: Satisfactory Progress Policy List

The report now allows you to filter down to specific SDB Student Groups! This helps users answer the question, “are any students in a group I care about currently or projected to be in danger of producing unsatisfactory progress?”

Please note, in order to align with BI Portal naming standards, in this release we also updated the report’s BI Portal title:

  • From: Satisfactory Progress Policy Report
  • To: Satisfactory Progress Policy List

Background:

The SDB includes a feature called “Student Groups”. The Student Groups feature allows advisers, program coordinators, and others to work with the Office of the University Registrar (OUR), to create groups in SDB. The requester can then associate students with the groups in SDB. You can think of this like “tagging” students in the database with a group name. This is useful for tracking students beyond courses and majors. Some examples include:

  • Geography Departmental Honors
  • Fraternity Sigma Chi

You can explore the list of existing SDB Group Codes in the SDB Code Manual: UW Student Data

If you think you could benefit from this SDB Student Groups feature, or would like to learn more, please write studentdata@uw.edu with “SDB Student Groups Inquiry” in the subject line.

Change Summary:

We added two new Student Groups filters to the report:

Student Group Type

There are scores of Student Groups across all three campuses. To try to make this long list more manageable, we added a Student Group Type filter.

Student Group Types are just collections of Student Groups. For instance the Student Group Type “FRATERNITY/SORORITY” is a collection of groups like:

  • FRATERNITY CHI PSI
  • FRATERNITY DELTA CHI

Please note, most Student Groups do not have an associated Student Group Type, so we also included an option “No Group Type”

If you manage SDB Student Groups and you would like to associate them with an existing or new type, please write studentdata@uw.edu with “SDB Student Groups Inquiry” in the subject line.

Student Group

The Student Group filter allows you to filter down to a specific cohort of students that are associated with the group in SDB.

If you think you could benefit from this SDB Student Groups feature, or would like to learn more, please write studentdata@uw.edu with “SDB Student Groups Inquiry” in the subject line.

Columns to Display

We also added Student Group information as an optional column to display. Please consider:

  • The report does include Student Group information by default.
  • If a student is in multiple groups, then the report will display student group information in a comma-separated list.

Questions and Feedback:

This report references many UW institutional concepts, including Student Group and Student Hold. To get detailed definitions for these and other terms, please check out Knowledge Navigator!

As always, if you have any questions, please write help@uw.edu and put “RPG: Satisfactory Progress Policy List” in the subject line.

EDW Upgrade to SQL Server 2019 Complete

The EDW successfully upgraded our user-facing servers (EDWPub.s.uw.edu) to SQL Server 2019. 

We believe you will experience minimal impact, however, if you do experience any issues, please reference our IT Connect article titled, “Preview available for upcoming EDW server upgrade” which contains a list of known issues.

Reporting issues
If you experience any issues you are not able to resolve, please write help@uw.edu and put “EDWPub Server Upgrade” in the subject line.

Explore the Canvas course template

UW-IT and UW Learning Technologies developed a basic course template to help instructors quickly create courses that are easy for students to navigate. The template, which organizes course content within modules, is designed to accommodate a range of disciplines and teaching approaches. The design of the template was guided by two priorities: 1) to ease and simplify course creation, 2) to help students find the information they need. Our goal is for the template to empower instructors: to help them confident that they are creating a course that students will find easy to use.

Resources for Teaching Remotely

Explore resources for teaching remotely: UW information hubs from Bothell, Seattle, and Tacoma, including the Roadmap to Effective Online Teaching. Also included are Canvas course templates, Canvas model courses, a Canvas course readiness checklist and guides for teaching with UW technologies. Get support for remote teaching from video resources and workshops and webinars. Review the resources now.

UW Course Readiness Checklist for Online Instruction

Check out the course readiness checklist when setting up a Canvas course for remote instruction. From setting up your Canvas site, adding course content to modules, customizing navigation, creating assignments and quizzes, setting up grading, helping students get started, making content accessible to all learners, and establishing your presence as instructor in a remote environment, the checklist can help you feel more confident when approaching remote instruction.

This resource was created by the UW Tri-Campus Committee for Online Learning Resources and Practices.

FWS v2 is now available in EVAL to support UW Finance Transformation efforts

Updated April 25, 2023

Preparation for UW Finance Transformation

The Enterprise Data Platform is working closely with our partners to ensure that our services are in place to support you in your efforts to prepare for UW Finance Transformation (UWFT). If you would like to better understand the current state of the UWFT program, please visit the Finance Transformation home page. If you have not engaged with the Finance Program yet and would like to learn more about how your specific processes may be impacted by UWFT, we encourage you to review the resources on the UWFT Change Network.

Financial Web Services v2 (FWS v2)

When FT goes live, we will be retiring the current version of FWS and replacing it with a new service, FWS v2, that will reflect the Workday Foundation Data Model (FDM), which is the technical framework that organizes financial data to support both financial and managerial reporting in Workday. 

We are currently developing the new Financial Web Service (FWS v2) and provisioning data from Workday Test tenants. This data is available to you today in DEV and EVAL environments in order to help inform future state design of your own services and processes.

DEV vs EVAL

  • Use the DEV environment if you are OK with changes made on a daily frequency without notice. 
  • Use EVAL If you would like to connect to a more stable environment where you will receive communications before any changes are made via the fws-client-app-dev mailman list.  

Getting Started on FWS v2 EVAL

  • Follow the instructions in Getting Started Guide | FWS to gain access and get started.
  • Refer to the Swagger documentation for the most up to date data structure – FWS v2 Swagger documentation.
  • Even though FWS v2 is in EVAL, we are still actively developing and will be making changes along the way that could break your application or processes. By subscribing to the fws-client-app-dev mailman list, you will be kept informed of these changes so that you have the information you will need to adapt.

Support

  • Please submit support requests to fws-support@uw.edu with ‘FWS v2 EVAL’ in the subject line.
  • Subscribe to fws-client-app-dev mailman list to stay current on upcoming deployments and changes.
  • Subscribe to the Finance Transformation FWS v2 Customer Portal; we will be adding new resources to this page periodically.
  • We will support questions related to e.g. missing data, data structure, access/connection issues, and adding access for additional NetIds or Applications.
  • For questions regarding data quality please contact UWFT at uwftask@uw.edu.  

Upcoming changes on EDW process dates for WorkerPosition-related views

Update on 2/12/2021:

EDW team is going to deploy this change on Saturday February 27th to give room for our Payroll data processing to take place in the week of March 1st.  If you have any concerns with the 2/27 deployment, please let us know as soon as possible by emailing help@uw.edu with the subject: “EDW WorkerPosition Changes”.

Thank you,

EDW team

2/2/2021

We’d like to share upcoming changes to the following columns in the views of the ODS and HumanResources databases. 

The Impacted columns are: 

Views Columns
ODS.sec.WorkerPosition RecordLoadDttm, RecordUpdateDttm
ODS.sec.WorkerPositionDetail RecordLoadDttm, RecordUpdateDttm
ODS.sec.WorkerPositionJobClassificationDetail RecordLoadDttm, RecordUpdateDttm
HumanResources.sec.WorkerPosition (history data) RecordLoadDttm, RecordUpdateDttm, RecordEffBeginDate, RecordEffEndDate

 

If you have not used or care about these columns in these views, please stop reading and disregard the message. Otherwise, please see the following details. 

 

Changes and Impacts: 

There was a minor issue found in some EDW filtering logic for WorkerPosition’s daily loading process, which was not consistent with EDW’s rule of no data loading on Saturdays. 

 

If there are Worker Positions whose end dates in the WorkerPositionEndDate column fall on a Saturday, then such rows will be correctly handled in the fixed filtering logic. All rows after October 2019 (when the filtering logic in question started being applied) will be reloaded; these rows will have either a new RecordLoadDttm and/or RecordUpdateDttm value. Some records (6000+) in the history data will have slightly different RecordEffBeginDate and RecordEffEndDate values, based on the fixed logic.  

 

EDW team plans to deploy the change in the week of March 1st 2021.

 

If you have any questions about any of these upcoming changes, please email help@uw.edu with the subject: “EDW WorkerPosition Changes”.

 

Thank you,

EDW team

RPG Release: Degree Info now on Class List Report

Based on user feedback, the Report Prioritization Group just released an update to the report: Class List By Curriculum Course Section. The report now includes student degree information.

Background:

Advisers requested the ability to see student “degree information” fields on the report. The report still allows you to filter down to a specific quarter and course and get a list of students enrolled in the course, but the degree info now allows you to also see:

  • If a student took a course in the past, did they graduate? If so, what degree were they granted?
  • If a student is enrolled in a course in the current or a future quarter, have they applied for a degree? If so, what degree have they applied for?

Change Summary:

We updated Columns to Display filter to expose several degree attributes.

Columns to Display filter:

  • We added a new option to the “Columns to Display” filter called Degree Info
  • If you choose the Degree Info option, the report will include 4 new columns:
    • Degree Title: This column displays the full title associated with a student’s degree. For instance, “Doctor of Philosophy (Chemistry)”
    • Degree Status: This column displays the status of the student’s degree, either Applied or Granted. If the student has not applied for or been granted a degree, the report will display a blank.
    • Degree YrQtr: This column displays the academic quarter associated with the student’s degree (e.g. Spring 2020).
    • Degree Academic Yr: This column displays the academic year associated with the degree year/quarter. We provide the academic year value (e.g. 2019/2020) so that you don’t have to calculate/derive it from the Degree YrQtr field!

Please Note:

  • The report provides basic attributes of a student’s most recent degree. For more detailed student degree information, please continue to use the BI Portal report: Student Degree Information
  • The report displays one row per student per quarter per course. However, some students have multiple degrees over many years. If a student has more than one degree, the report only displays the most recent degree information.
    • For instance, if a student received a bachelors degree in Spring 2015, and has applied for a Masters degree in Spring 2021. The report will only display information about the applied-for Masters degree.
  • Graduate degrees are processed differently than undergraduate degrees. As a result, graduate advisers and other users who run the report for graduate student populations may not see “Applied” in the Degree Status column even though the graduate student has in fact applied to graduate.

Questions and Feedback:

This report references many UW institutional concepts, including Degree Status and Degree Year Quarter. To get detailed definitions for these and other terms, please check out Knowledge Navigator!

As always, if you have any questions, please write help@uw.edu and put “RPG: Class List Report/Degree Info” in the subject line.