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
Copy file name to clipboardExpand all lines: conditional_true_event.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# CONDITIONAL_TRUE_EVENT
2
2
3
-
`CONDITIONAL_TRUE_EVENT` is a powerful, yet underutilized Window Function in Snowflake. `CONDITIONAL_TRUE_EVENT` let's you cumulatively count the occurrences of a TRUE event in a WINDOW.
3
+
`CONDITIONAL_TRUE_EVENT` is a powerful, yet underutilized Window Function in Snowflake. `CONDITIONAL_TRUE_EVENT` let's you cumulatively count the occurrences of a TRUE event in a WINDOW. Under the cover, `CONDITIONAL_TRUE_EVENT` assigns an event window number to each row, starting from 0, and increments the number by 1 when the result of the boolean argument expression evaluates true.
4
4
5
5
Here is a example of how to use it to count number of days the stock price was higher than the previous highest value of the Stock for a given Window.
0 commit comments