Fungsi Window BigQuery
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 BigQueryCUME_DIST
Menghitung cumulative distribution - proporsi baris dengan nilai kurang dari atau sama dengan baris saat ini.
FLOAT64DENSE_RANK
Memberikan peringkat untuk setiap baris tanpa gap. Baris dengan nilai sama mendapat peringkat sama, peringkat berikutnya langsung +1.
INT64FIRST_VALUE
Returns the first value in the window frame for each row.
Same as input expressionLAG
Accesses a value from a previous row in the partition based on the specified offset.
Same as input expressionLAST_VALUE
Returns the last value in the window frame for each row.
Same as input expressionLEAD
Accesses a value from a subsequent row in the partition based on the specified offset.
Same as input expressionNTH_VALUE
Returns the value at the Nth position in the window frame.
Same as input expressionNTILE
Divides rows within a partition into a specified number of buckets and assigns a bucket number to each row.
INT64PERCENTILE_CONT
Computes a continuous percentile value using linear interpolation across the values in a group.
FLOAT64PERCENTILE_DISC
Returns the actual value at the nearest percentile without interpolation.
Same as input expressionPERCENT_RANK
Menghitung percentile rank relatif dari setiap baris. Nilai antara 0 dan 1, menunjukkan persentase baris yang lebih rendah.
FLOAT64RANK
Assigns a rank to each row. Rows with equal values receive the same rank, and there is a gap after ties.
INT64ROW_NUMBER
Assigns a unique sequential number to each row within a partition, starting at 1. No duplicate values are assigned.
INT64