Skip to main content
jahnavi
Contributor ⭐️⭐️⭐️⭐️⭐️
April 6, 2018
Question

Group by using numeric and calculated fields in reports

  • April 6, 2018
  • 15 replies
  • 239 views
Group by using numeric and calculated fields in reports

15 replies

sai_ram
Expert ⭐️⭐️
April 11, 2018
Hi Jahnavi, For the second part of the question are you referring to Formula fields in Reporting, here is the similar ask.

For the First part of the question, could you please share us the use-case,where you need a numeric field in Groupby.

Since its a new enhancement request, changing this to an idea post.
jahnavi
jahnaviAuthor
Contributor ⭐️⭐️⭐️⭐️⭐️
April 12, 2018
I was looking at  a use case to count number of customers that fall in the range of 100-200 for metric x
ben
Helper ⭐️⭐️⭐️
April 12, 2018
Right, this would be similar to "bucketed fields" in standard SFDC reporting. You can define a range of values to bucket accounts into and then compare that against a different value on the y axis. SF DC reporting is gross (non lightening/wave), so it would be nice if this was doable in Gainsight.
-Ben
dan_ahrens
Expert ⭐️⭐️⭐️
April 13, 2018
Hi Jahnavi, 

If I understand your use case correctly, you want to show the number of customers for which the value of a given metric is 100-200, right?

You can do this by setting the account name field in the report as an aggregation (count distinct) and in your filters, apply these two with an and condition linking them: "metric > 99" and "metric < 201".

This should give you a number of customers where that condition is met. 
VP of Customer Success at Forcepoint
jahnavi
jahnaviAuthor
Contributor ⭐️⭐️⭐️⭐️⭐️
April 14, 2018
Thanks Dan, I guess this would work for a widget but not a bar chart right?
dan_ahrens
Expert ⭐️⭐️⭐️
April 16, 2018
You could show this data using a bar chart visualization if you add a field to the "By" section to give you more than one numerical value to report on. 

So, for example you could apply the same logic: setting the account name field in the report as an aggregation (count distinct) and in your filters, apply these two with an and condition linking them: "metric > 99" and "metric < 201". And add a field like "Region" to the "By" area, for example. 
VP of Customer Success at Forcepoint
jahnavi
jahnaviAuthor
Contributor ⭐️⭐️⭐️⭐️⭐️
April 27, 2018
I have a calculated field say ABC which is nothing but some percentage. I would like to count number of customers and group by ABC. This should automatically prepare ranges and count the number of customers in each range
olavo_zapata
Contributor ⭐️⭐️⭐️⭐️
July 10, 2018
Hi Dan,

Seeing your explanation to Jahnavi, We need to find a workaround to use a formula or a field number in reports?
I have different use cases that I tried to use a formula field, for example, A Region field that is defined in a Case Formula based on states and any others.

My question is, this is a bug that Gainsight are looking for to solve or it's working as expected?

Thanks
dan_ahrens
Expert ⭐️⭐️⭐️
July 10, 2018
Hi Olavo, 

Can you post some more detail around your specific use case and issue? I'm not able to determine the exact scenario you're facing.

Thanks,
Dan
VP of Customer Success at Forcepoint
olavo_zapata
Contributor ⭐️⭐️⭐️⭐️
July 10, 2018
Hi Dan,

I think my case is exactly the Post name.
When I try to use a numeric field or a formula field and group then. The report doesn't allow it.

For example:
I have some implementation projects and a picklist field that registers each of them, but some have their duration of 4 weeks, 8 weeks and 12 weeks.
I made a formula field that group the projects by their duration and I would like to see a stacked bar chart with a trend selling of our implementation projects.