Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Roleplay Dimension Views for dates #12

Open
harrisward opened this issue Feb 2, 2020 · 5 comments
Open

Add Roleplay Dimension Views for dates #12

harrisward opened this issue Feb 2, 2020 · 5 comments
Assignees
Labels
enhancement New feature or request P2

Comments

@harrisward
Copy link
Member

Needs to add views to cover the roleplay aspect of date lookups

@harrisward harrisward added enhancement New feature or request P2 labels Feb 2, 2020
@harrisward harrisward self-assigned this Feb 2, 2020
@harrisward harrisward added this to the 1.2 milestone Jul 1, 2020
@harrisward
Copy link
Member Author

Review Fact Tables for date fields and decide on the Date Views that need to be created. For example, D_LEAD_CREATED_DATE, D_LEAD_CONVERTED_DATE

@harrisward
Copy link
Member Author

Before we implement this fully its best we create a test based on F_CASE_MANAGEMENT dates.

Create some cases and close them on different days from the create date (CASE_CREATED_TK and CASE_CLOSED_TK in the F_CASE_MANAGEMENT table). You can dummy this data after the ETL has loaded it from the source system.

Then create 2 new views (and DDL) for D_CASE_CREATED_DATE and D_CASE_CLOSED_DATE. Once the views are in place run some queries using these combined views. For example,

SELECT * FROM F_CASE_MANAGEMENT ....
INNER JOIN D_CASE_CREATED_DATE
ON F_CASE_MANAGEMENT.CASE_CREATED_TK = D_CASE_CREATED_DATE.CASE_CREATED_TK
INNER JOIN D_CASE_CLOSED_DATE
ON F_CASE_MANAGEMENT.CASE_CLOSED_TK = D_CASE_CLOSED_DATE.CASE_CLOSED_TK

This should test if the two views that are based off D_DATE work when referenced at the same times as views

@fraserward
Copy link
Collaborator

Tested two views joined - working.

@fraserward
Copy link
Collaborator

We need to define the views we need. closed, created, modified etc etc

@harrisward
Copy link
Member Author

We need to create the following Date Views:

This List could change!

D_CASE_CREATED_DATE
D_CASE_CLOSED_DATE

D_LEAD_CREATED_DATE
D_LEAD_CONVERTED_DATE
D_LEAD_CLOSED_DATE

D_OPPORTUNITY_CREATED_DATE
D_OPPORTUNITY_CLOSED_DATE

D_INVOICE_CREATED_DATE
D_INVOICE_DUE_DATE

@harrisward harrisward removed this from the 1.2 milestone Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P2
Projects
None yet
Development

No branches or pull requests

2 participants