Hello, I want to count the number of pipeline names partitioned by pipeline type. I have used a table calculation to obtain my expected result. However, for months where there are no pipeline types, the result is blank.
runningSum(
count(name),
[{created_month} ASC],
[pipeline]
)
For instance, I want above 202103 is 72, not blank.
Has anyone done the same thing before? Please help me out. Thank you!
Xing
August 23, 2023, 1:21pm
2
Could you provide a sample dataset in csv to demonstrate your issue?
Hi Xing, thank you for reaching out.
The dataset looks like this
created_year,created_month, created_day are calculated field
Hi @Xing I found some work around method, I used lag to find the the previous column and will replace month’s value with this value if it’s bank. But it seems can not detect the empty value of the calculation?
ifelse(
{count_type} = NULL,
lag(
{count_type},
[{created_month} ASC],
1,
['pipeline']
),
{count_type}
)
I tried isNull() as well
Xing
August 25, 2023, 1:10pm
5
What does count_type represent? I do not see that field in your screenshot of the table.
Xing
August 25, 2023, 1:13pm
6
Anyway, you should use isNull() as below
ifelse(
isNull({count_type}),
lag(
{count_type},
[{created_month} ASC],
1,
[‘pipeline’]
),
{count_type}
)
Hi @Xing .
Thank you, I already tried this, the value is still empty on the new calculated field.
I did some more research and found this post:
Hey there,
I’m currently working on a table calculation, and I’ve noticed that the running sum isn’t functioning correctly due to missing values in the dates. In the provided image, you can see that for Q1, the sales data is missing for day 4 and day 5. In this scenario, I’m wondering if it’s possible to carry forward the value of 1.16M from day 3 to day 4 and day 5 when using the running sum calculation.
The calculation for the running sum is as follows:
nullIf(runningSum(sum({Amount (conver…
It seems a runningSum (or table calculations in general) limitation.
Xing
September 6, 2023, 3:19pm
8
At AWS, our roadmap is primarily driven by our customers. Your feedback helps us build a better service. I have tagged this as a feature request.