How to populate metric instance from audit for historical data?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2023 07:49 AM - edited ‎11-20-2023 10:07 PM
Hello Experts,
I have a requirement to create metric definition on particular table to track reference type of field changes,
i have created a metric as below-
Table: Cafe table(custom table)
Field: Data Visited(u_data_visited)
Type: Reference
Scripted Calculation:
I want to populate metric instances from sys_audit table where this field has changed from old value to new value
Could anyone suggest me how can I achieve the same?
The issue is fix script is not showing metric field changed records under metric instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2023 08:00 AM
Hi @Utkarsha ,
The metric definition for has option to select table name & field name , and here your main table is "Cafe table" and Field "Data Visited", so this metric definition will record any change in this field only.
If you check, you cant select sys_audit table in this metric definition form. Seems like you have 2 separate requirement ongoing change or old data fix.
-Thanks,
AshishKMishra
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2023 08:57 AM - edited ‎11-20-2023 08:57 AM
Hello Sir,
Thank you for replying. Yes I have two requirements
First one to capture latest records and second is to capture historical records data which already exist in the system.
For the first one metric is working but for historical records, i need to go with fix script I guess