Skip to main content
Expert ⭐️
May 11, 2021 11:23 PM UTC
New Idea

Data Designer - Default values to 0

Issue: I have a Massive DD, like 40 different tasks, built out and when it runs I am getting zeros and blanks/nulls in the same columns. The blanks are occurring because there is no data in a particular column when aggregating in a transformation.

 

Idea: Give the ability when aggregating in DD and Rules to give the ability to have a default value if there is no data in that column to aggregate.

 

My current work around: I can get around this by adding formula or case statements in an additional transformation. However, I am only able to add 10 per a transformation forcing me to add x number of tasks to get an end result. Additionally this creates the need for additional tasks that are unwanted/unneeded. 

7 replies

sai_ram
Expert ⭐️⭐️
May 12, 2021 4:40 PM UTC

@Wayne sorry for the inconvenience. I will redirect this to the product team for more visibility.

That’s great you found the workaround and shared here. Thanks.

Translate
rakesh
Gainsight Employee ⭐️
Lets put your data to work!
May 19, 2021 11:04 AM UTC

I like this idea @Wayne. Basically during data preparation, if there is no data for some aggregation, you want to fill in 0’s instead of blanks. 

What all aggregations do you face this challenge in? Is when you Group By or Pivot?

 

I suspect in some it makes sense to add the above capability, in others, it might impact the performance of our processing a lot. 

Translate
WayneAuthor
Expert ⭐️
May 19, 2021 7:40 PM UTC

It is for Group By only. Pivot already has this capability. Which was shocking to have it in one spot but not both.

 

I would have thought it would have been in the Group By more than Pivot.

 

 

Translate
rakesh
Gainsight Employee ⭐️
Lets put your data to work!
May 26, 2021 11:26 AM UTC

Hi @Wayne 

Group By is a default database behavior and there are heavy performance cons if we want to change the way it works from only aggregating data to showing values with no data. Think around 30-100 times slower. Because of this we will not b going ahead with this.

Translate
WayneAuthor
Expert ⭐️
May 26, 2021 2:23 PM UTC

Interesting, guess I’ll have to stick with my work around then. But, out of curiosity, aren’t you doing a group by in pivots?

Translate
rakesh
Gainsight Employee ⭐️
Lets put your data to work!
Jun 1, 2021 9:25 AM UTC

Pivoting in Data Designer and Rules is kind of like a Case statement behind the scenes. 

Translate
WayneAuthor
Expert ⭐️
Jun 1, 2021 4:18 PM UTC

Right, but you are doing a case statement to determine if a row meets a certain criteria and then if so performing a group by/aggregation on if it does or doesn’t.

 

 

Translate