简体   繁体   中英

How to bypass level of detail table calculation limitation

I want to use LOD to get how many customers are spending over $1k and flag all the activity for each customer after they hit that threshold. I am using a table calculation to get a running total of their cumulative spend: RUNNING_SUM(SUM(SPEND))

Ideally I would like to do something like this: {FIXED year(date), cust_id: IF RUNNING_SUM(SUM(SPEND)) >1000 then 1 end} And then add that calculated field as a filter, however Tableau does not support using LOD with table calculations. Are there any good workarounds for this?

Quite interesting topic, but I'm not sure if I got it straight.

With the following solution, you can see just the transactions after 1K for each user.

在此处输入图像描述

Is this what you want?

I'm asking beacuase if you need to count (transactions or users) I think there's no way due to the problem you've already pointed out.

Otherwise, if you "just" need to track the activity starting from the ones triggering the 1k limit, this could be a solution.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM