You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Retail Loss Prevention with AI-Powered Anomaly Detection
12
12
@@ -35,7 +35,6 @@ Participants of Snowflake Summit 2026 who are interested in getting hands-on wit
35
35
36
36
<ul>
37
37
<li>A computer with a current browser (any browser will work)</li>
38
-
<li>A personal email address (for account creation)</li>
39
38
</ul>
40
39
41
40
<asideclass="negative">
@@ -52,20 +51,16 @@ Participants of Snowflake Summit 2026 who are interested in getting hands-on wit
52
51
## Setup
53
52
Duration: 10
54
53
55
-
**Step 1**: Use this link to navigate to [Sigma](https://app.sigmacomputing.com/snowflake-summit-2025-hol)
54
+
**Step 1**: Use this link to navigate to [Sigma](http://app.sigmacomputing.com/snowflake-summit-2026-hol)
56
55
57
-
**Step 2**: Sign up for an account using your personal email by selecting `create an account` and entering your personal email address.
56
+
**Step 2**: Create an account by selecting `Sign up` and entering your email address:
58
57
59
58
<imgsrc="assets/sfs_2026_01.png"width="400"/>
60
59
61
60
<asideclass="positive">
62
61
<strong>IMPORTANT:</strong><br> Do not sign up for a new Sigma trial for this lab! Use only the URL and instructions provided by your lab facilitator.
63
62
</aside>
64
63
65
-
<asideclass="negative">
66
-
<strong>NOTE:</strong><br> Be sure to have a personal email ready — we'd prefer to avoid accidental sign-ups for new Sigma accounts!
67
-
</aside>
68
-
69
64
We have whitelisted the following domains for this lab:
70
65
```code
71
66
@gmail.com
@@ -149,11 +144,15 @@ Use the **State** filter to drill down specifically to `Oregon`:
149
144
150
145
With Sigma, you can click on an element to see the underlying data directly.
151
146
152
-
For example, you could click on `Noreen Swift's`bar in the chart and `Drill down` to see all the flagged transactions she handled:
147
+
For example, you could could select the bar chart and `Show underlying data` to see the flagged transaction detail data:
153
148
154
149
<imgsrc="assets/rlp_06a.png"width="500"/>
155
150
156
-
You can do further analysis directly there, or use `AI Agents` as shown in the next step.
151
+
You could do further analysis directly there, or use `AI Agents` as shown in the next step.
152
+
153
+
Click the `X`` to close the modal:
154
+
155
+
<imgsrc="assets/rlp_06b.png"width="700"/>
157
156
158
157
We will use `Sigma Assistant` to investigate Noreen Swift's performance, starting with broad metrics and narrowing our focus.
159
158
@@ -228,21 +227,25 @@ Duration: 25
228
227
229
228
### Prepare the Data
230
229
231
-
**Step 1**: With the workbook in `Edit` mode, navigate to the `Anomaly Detection` page.
230
+
**Step 1**: Let's return to our saved workbook by clicking on `Your documents` and selecting the `LOSS_PREVENTION_APP_` with your name that we saved earlier:
231
+
232
+
<imgsrc="assets/rlp_16a.png"width="800"/>
233
+
234
+
**Step 2**: Place the workbook in `Edit` mode, navigate to the `Anomaly Detection` page.
232
235
233
236
You will see the POS table (`BIG_BUYS_POS_ENRICHED_SHRINK_FLAGS`) which includes the store filter from Module 1:
234
237
235
238
<imgsrc="assets/rlp_16.png"width="800"/>
236
239
237
240
<asideclass="negative">
238
-
<strong>NOTE:</strong><br> If you removed the filter already, just reapply it for `100650 - Big Buys Salem`.
241
+
<strong>NOTE:</strong><br> If you removed the filter already, just reapply it for `100650 - Big Buys Salem`, as shown in the optional step 3.
239
242
</aside>
240
243
241
-
**Step 2 (if required)**: Add a filter on the `STORE_IDENTIFIER` column. Select `Store 100650 - Big Buys Salem`:
244
+
**Step 3 (if required)**: Add a filter on the `STORE_IDENTIFIER` column. Select `Store 100650 - Big Buys Salem`:
242
245
243
246
<imgsrc="assets/rlp_17.png"width="800"/>
244
247
245
-
**Step 3**: Create a `Child Table` element from the filtered POS `BIG_BUYS_POS_ENRICHED_SHRINK_FLAGS` table:
248
+
**Step 4**: Create a `Child Table` element from the filtered POS `BIG_BUYS_POS_ENRICHED_SHRINK_FLAGS` table:
246
249
247
250
<imgsrc="assets/rlp_18.png"width="800"/>
248
251
@@ -254,7 +257,7 @@ Rename this new table: `BIG_BUYS_POS_PYTHON_TEST`
254
257
255
258
### Add the Python Anomaly Detection Script
256
259
257
-
**Step 4**: Add a `Python` element from the `Element bar` > `Data` group, placing it below the `BIG_BUYS_POS_PYTHON_TEST` child table:
260
+
**Step 5**: Add a `Python` element from the `Element bar` > `Data` group, placing it below the `BIG_BUYS_POS_PYTHON_TEST` child table:
**Step 5**: Copy and paste the code into the Python element, replacing the sample code:
317
+
**Step 6**: Copy and paste the code into the Python element, replacing the sample code:
315
318
316
319
<asideclass="negative">
317
320
<strong>IMPORTANT:</strong><br> Ensure your naming conventions match the script. If your table names differ from the instructions, you must update the script accordingly to avoid execution errors.
318
321
</aside>
319
322
320
-
**Step 6**: Click `Run` (lower right corner of the element):
323
+
**Step 7**: Click `Run` (lower right corner of the element):
321
324
322
325
<imgsrc="assets/rlp_20.png"width="800"/>
323
326
@@ -330,7 +333,7 @@ Rename the table `MODEL_COMPARISON`.
330
333
### Visualize the Comparison
331
334
We will now use this table to visualize the output to compare the Python model against the original static rules.
332
335
333
-
**Step 7**: Create a child `Chart` from the `MODEL_COMPARISON` table:
336
+
**Step 8**: Create a child `Chart` from the `MODEL_COMPARISON` table:
334
337
335
338
<imgsrc="assets/rlp_22.png"width="800"/>
336
339
@@ -396,7 +399,11 @@ COUNT([SCAN_ID])
396
399
397
400
<imgsrc="assets/rlp_37.png"width="350"/>
398
401
399
-
**Step 6**: Add `Conditional formatting` to the `PERCENT FLAGGED` column. Add `Format type` > `Color Scale` > `Custom` > `Sequential`.
402
+
**Step 6**: Add `Conditional formatting` to the `PERCENT FLAGGED` column:
0 commit comments