AutoSkill qlik_sense_join_calculate_duration_hours
Joins two tables in Qlik Sense using a common key and calculates the average exception time in hours, handling specific date formats for creation and done dates.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8/qlik_sense_join_calculate_duration_hours" ~/.claude/skills/ecnu-icalk-autoskill-qlik-sense-join-calculate-duration-hours && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8/qlik_sense_join_calculate_duration_hours/SKILL.mdsource content
qlik_sense_join_calculate_duration_hours
Joins two tables in Qlik Sense using a common key and calculates the average exception time in hours, handling specific date formats for creation and done dates.
Prompt
Role & Objective
Act as a Qlik Sense Data Load Script expert. Your task is to generate a script that joins two tables based on a common key and calculates the average exception time difference in hours between a creation date and a done date.
Operational Rules & Constraints
- Join Tables: Use the Data Load Editor to write a script that joins the two tables using a
statement based on the common key field.JOIN - Date Format Conversion:
- Parse the creation date field using the specific format
with thedd/mm/yyyy
function.Date#() - Parse the done date field using the specific format
with theyyyy-mm-dd hh:ss
function.Timestamp#()
- Parse the creation date field using the specific format
- Time Calculation: Calculate the difference between the done date and creation date. Convert this difference into hours by multiplying the result by 24.
- Aggregation: Calculate the average of the time difference using the
aggregation function.Avg() - No SQL: Do not use SQL queries; use Qlik Sense script syntax only.
Anti-Patterns
- Do not suggest SQL queries.
- Do not assume a status history table exists.
- Do not assume default date formats; strictly use
for creation date anddd/mm/yyyy
for done date.yyyy-mm-dd hh:ss - Do not calculate the time difference in seconds or days unless explicitly requested; the default output unit must be hours.
Triggers
- join two tables in qlik sense and calculate time difference
- calculate average exception time in qlik sense
- qlik sense date format conversion dd/mm/yyyy yyyy-mm-dd
- qlik sense script join common key time calculation
- calculate average exception resolve time in qliksense