Skip to content

Commit b6a450f

Browse files
Update conditional_true_event.md
1 parent 6607b24 commit b6a450f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conditional_true_event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CONDITIONAL_TRUE_EVENT
22

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.
44

55
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.
66

0 commit comments

Comments
 (0)