Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个名为“组”的维度:
在“组”维度中,有“A 组”、“B 组”、“C 组”、“D 组”、“E 组”和“E-1 组”的下拉选项。
我想分组(或分组)下拉选项“E组”和“E-1组”可以称之为“X组”。因此,在我的下拉菜单中,我选择了“X 组”。
我怎样才能做到这一点?
像这样的东西应该适合你。
dimension: group { type: string sql: CASE WHEN ${TABLE}.group IN ('Group E','Group E-1') THEN 'Group X' ELSE ${TABLE}.group END ;; }