Dual Script syntax and chart function
In this video, you’ll learn how to use the Dual() function in Qlik Sense to combine text and numeric values into one field.
This technique lets you control both the display and the sort order of data, making it especially useful for months, customer segments, or custom ranking logic.
We’ll cover how to:
– Use Dual(text, number) syntax for combined fields
– Apply Dual() for chronological month sorting
– Order customer segments with numeric rank values
– Leverage Dual() in chart expressions for better visualization and control
By the end, you’ll know how to apply Dual() to make your dashboards more intuitive, consistent, and user-friendly.
📌 00:08 – What is the Dual() Function?
⚙️ 00:13 – Dual() Syntax: Text + Number
📊 00:22 – Display vs. Sorting Behavior
✨ 00:33 – Full Syntax: Dual(text, number)
📅 00:42 – Example: Sales Data with Months
🔄 00:59 – Sorting Months Chronologically with Dual()
📝 01:02 – Creating MonthOrder Field in Script
📅 01:21 – Chronological Month Sorting in Filter Pane
👥 01:26 – Ordering Customer Segments with Dual()
🔗 01:34 – LEFT JOIN + Segment Rank Example
📊 01:46 – Dual in Filter Pane for Segments
📈 01:53 – Using Dual in Chart Expressions
🖊️ 01:56 – Dual as Measure: Labels + Sorting
✅ 02:05 – Recap: Display Text + Numeric Sorting
📌 02:25 – Best Practice: Define Dual Early in Script
🔚 02:30 – Conclusion