0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

bigquery の DropdownList の条件指定について

Last updated at Posted at 2019-12-12

はじめに

やりたいこと

bigquery で DropdownListを設定し、選択した値を別の値に置き換えたものに変換してからデータを抽出したい

  • bigquery で Dropdownlistを設定
1.png
  • 設定後の状態
2.png

対応方法

  • WHERE条件の中にIF文を記載する
 WHERE ('{{device}}' = '全て' OR device = IF('{{device}}' = 'pc', '1', IF('{{device}}' = 'sp', '2', '')))

参考

終わりに

  • Tipsでした
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?