[英]Calculate the percent difference between two percentages at two dates in Tableau
我用兩種方式解決了這個問題:一個創建了兩個日期字段 - 一個用於一周,一個用於最后一周:然后進行差異測量,並將它們用作列。
還有另一種方式,更粗糙:
if first() == 0 then
(
window_sum((if last() == 0 then sum(count_measure) end))
-(window_sum(if first()==0 then sum(count_measure) end))
)
/(window_sum(if first()==0 then sum(count_measure) end))
end
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.