Fungsi analitik untuk perhitungan berbasis baris. Temukan semua 13 fungsi window di BigQuery lengkap dengan syntax, contoh, dan penjelasan bahasa Indonesia.
13 fungsi window di BigQuery
← Semua fungsi BigQueryMenghitung cumulative distribution - proporsi baris dengan nilai kurang dari atau sama dengan baris saat ini.
FLOAT64Memberikan peringkat untuk setiap baris tanpa gap. Baris dengan nilai sama mendapat peringkat sama, peringkat berikutnya langsung +1.
INT64Returns the first value in the window frame for each row.
Same as input expressionAccesses a value from a previous row in the partition based on the specified offset.
Same as input expressionReturns the last value in the window frame for each row.
Same as input expressionAccesses a value from a subsequent row in the partition based on the specified offset.
Same as input expressionReturns the value at the Nth position in the window frame.
Same as input expressionDivides rows within a partition into a specified number of buckets and assigns a bucket number to each row.
INT64Computes a continuous percentile value using linear interpolation across the values in a group.
FLOAT64Returns the actual value at the nearest percentile without interpolation.
Same as input expressionMenghitung percentile rank relatif dari setiap baris. Nilai antara 0 dan 1, menunjukkan persentase baris yang lebih rendah.
FLOAT64Assigns a rank to each row. Rows with equal values receive the same rank, and there is a gap after ties.
INT64Assigns a unique sequential number to each row within a partition, starting at 1. No duplicate values are assigned.
INT64