Validity Rules

Validity Rules

x


Accessing your Catalog

To get started using the Data Catalog, log in using the address and credentials provided by your Data Catalog service user or administrator.

To access your catalog, please follow these steps:

  1. Open Google Chrome web browser.

  2. Navigate to:

  1. Enter following email and password, then click Sign In.

Username: [email protected] (mapped to Business Steward role)

Password: Welcome123!


x

x

Valid Order dates

Scenario: Ensure OrderDate is never in the future and ShipDate is after OrderDate.

Business Rule Configuration:

Rule Name: Order_Date_Validity
Description: Validates logical date relationships in orders
Data Quality Dimension: Validity
Schedule: Daily
Target: Sales.SalesOrderHeader

SQL Query:

SELECT 
    COUNT(*) AS total_count,
    SUM(CASE 
        WHEN OrderDate <= GETDATE() 
        AND (ShipDate IS NULL OR ShipDate >= OrderDate)
        AND (DueDate >= OrderDate)
        THEN 1 ELSE 0 
    END) AS scopeCount,
    SUM(CASE 
        WHEN OrderDate > GETDATE() 
        OR (ShipDate IS NOT NULL AND ShipDate < OrderDate)
        OR (DueDate < OrderDate)
        THEN 1 ELSE 0 
    END) AS nonCompliant
FROM Sales.SalesOrderHeader

x

x

x

x

x

Last updated

Was this helpful?