CTR 在 Tableau 中的计算字段
Calculated Field in Tableau for CTR
我正在尝试从包含数据值“1”或“2”(1= 印象,2= 点击)的维度 "Notification type" 创建计算字段。
我想计算 CTR(点击率),即 (clicks/impressions)*100。
除了计算字段之外的任何解决方案也很受欢迎。提前致谢。
假设您的数据是每种通知类型一行,您可以执行以下操作:
(sum(if [notification type] = "2" then [number of records] end)
/
sum(if [notification type] = "1" then [number of records] end))*100
如果通知类型是维度(字符串),请在 1 和 2 周围使用引号。
我正在尝试从包含数据值“1”或“2”(1= 印象,2= 点击)的维度 "Notification type" 创建计算字段。 我想计算 CTR(点击率),即 (clicks/impressions)*100。 除了计算字段之外的任何解决方案也很受欢迎。提前致谢。
假设您的数据是每种通知类型一行,您可以执行以下操作:
(sum(if [notification type] = "2" then [number of records] end)
/
sum(if [notification type] = "1" then [number of records] end))*100
如果通知类型是维度(字符串),请在 1 和 2 周围使用引号。