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: ratio_to_report.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Calculating percentages using RATIO_TO_REPORT
2
2
3
-
`RATIO_TO_REPORT`Window function can be used to calculate percentage of the entire dataset or partitioned data.
3
+
`RATIO_TO_REPORT`SQL analytic function can be used to calculate percentage of the entire dataset or partitioned data. `RATIO_TO_REPORT` returns a value between 0 and 1 which indicates the weight of a numerical value in respect to the sum of all numerical values in the same partition. If multiplied by 100, the value of `ratio_to_report` can be interpreted as percentage.
0 commit comments