Expand my Community achievements bar.

SOLVED

Calculate (Sum) eVar values

Avatar

Level 3

Hi there

I have an eVar that captures account Balance for each member, I'm trying to find a way to get the sum of the eVar values per selected time period. For example

1425029_pastedImage_2.png

I need a calculated metric to give me the sum of the Account Balance eVar which will be for our example above ($67)

Appreciate your help in advance!

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

You can try one more thing.

Create a numeric 2 classification on Account Balances.

Set the value as the evar value itself.

If you like to multiply the evar value by the number of instances, then set the rate and hinge to instance. Otherwise set them to fixed.

example: here is my sample bogus data.

 

unitsInstances
87401120
61438111
310347109
820673100
83217100
691723100
3801199
5238896
84314896

I created a numeric 2 classification, and sent in these values depending on the first column:

       

Key~numeric2 test~numeric2 test^~id~~numeric2 test^~value~~numeric2 test^~period~~numeric2 test^~rate~~numeric2 test^~hinge~
8740187401874012015/01/01 - 2035/12/31instanceinstance
3801138011380112015/01/01 - 2035/12/31instanceinstance
6143861438614382015/01/01 - 2035/12/31instanceinstance
8321783217832172015/01/01 - 2035/12/31instanceinstance
8206738206738206732015/01/01 - 2035/12/31instanceinstance
5238852388523882015/01/01 - 2035/12/31instanceinstance
3103473103473103472015/01/01 - 2035/12/31instanceinstance
6917236917236917232015/01/01 - 2035/12/31instanceinstance
2614382614382614382015/01/01 - 2035/12/31instanceinstance
8431488431488431482015/01/01 - 2035/12/31instanceinstance
5798725798725798722015/01/01 - 2035/12/31instanceinstance

The date I have used is a large one which covers my historical timeframe and will work for the foreseeable future. You can keep what you like.

On uploading I can use the classification I have created as a metric:

1428500_pastedImage_10.png

As you can see it has multiplied the values with the instances. The total would be given at the bottom of the report. Those which are not classified (yet) are shown as zeroes. You can simply classify those values to correct them out.

Note that there is a limitation. Numeric 2 classification metrics are not available in Workspace or Ad Hoc

View solution in original post

12 Replies

Avatar

Level 8

Hi !

I believe it's impossible to sum the values of an evar.

You should implement a counter event for those values, and then you can have the sum.

If not you can export the data via datawarehouse or report builder and do it yourself !

Cheers !

Kind regards,

Avatar

Employee Advisor

While you will not be able to do this Workspace, you can definitely achieve this in Report Builder. Excel will allow you to sum up the values that are returned by the report. You can have them multiplied by their instances as well.

Avatar

Level 3

Thank you marion33678522 & hyderziaee

So if I want to approach this differently, and get the dollars count going forward similar to what we have in the revenue metric, without using the revenue metric as it's not actual revenue, what should I do? I mean, how can you report a value to an event instead of an eVar?

Avatar

Level 1

I am not exactly sure what it is your trying to calculate. The values in account balance is a bucket for the volume of accounts that have that balance (so you have 88 accounts with a 20 balance). If you wanted to sum the 88 accounts with a balance of 20 for a value of 1760, then I would create a calculated metric of multiplying the two variables.

Avatar

Level 3

I like your suggestion here. But again, how would you extract the eVar values so you can multiply it with the instances?

Avatar

Employee Advisor

mahmouda67379981

I dont see a way of doing this in Workspace.

Have you worked with Report Builder before? What you are trying to do can be done with it. It is basically an Add-in for Excel which pulls in the data to the excel sheet and you can apply custom formulae to get the results.

Let me know if you need more details.

Avatar

Level 3

hyderziaee thank you. I worked with report builder lightly as it's blocked internally in my company. The thing is, these values needs to be accessed by other users. are you aware of any other metric that can be used to sum $ values other than revenue in purchase?

Avatar

Correct answer by
Employee Advisor

You can try one more thing.

Create a numeric 2 classification on Account Balances.

Set the value as the evar value itself.

If you like to multiply the evar value by the number of instances, then set the rate and hinge to instance. Otherwise set them to fixed.

example: here is my sample bogus data.

 

unitsInstances
87401120
61438111
310347109
820673100
83217100
691723100
3801199
5238896
84314896

I created a numeric 2 classification, and sent in these values depending on the first column:

       

Key~numeric2 test~numeric2 test^~id~~numeric2 test^~value~~numeric2 test^~period~~numeric2 test^~rate~~numeric2 test^~hinge~
8740187401874012015/01/01 - 2035/12/31instanceinstance
3801138011380112015/01/01 - 2035/12/31instanceinstance
6143861438614382015/01/01 - 2035/12/31instanceinstance
8321783217832172015/01/01 - 2035/12/31instanceinstance
8206738206738206732015/01/01 - 2035/12/31instanceinstance
5238852388523882015/01/01 - 2035/12/31instanceinstance
3103473103473103472015/01/01 - 2035/12/31instanceinstance
6917236917236917232015/01/01 - 2035/12/31instanceinstance
2614382614382614382015/01/01 - 2035/12/31instanceinstance
8431488431488431482015/01/01 - 2035/12/31instanceinstance
5798725798725798722015/01/01 - 2035/12/31instanceinstance

The date I have used is a large one which covers my historical timeframe and will work for the foreseeable future. You can keep what you like.

On uploading I can use the classification I have created as a metric:

1428500_pastedImage_10.png

As you can see it has multiplied the values with the instances. The total would be given at the bottom of the report. Those which are not classified (yet) are shown as zeroes. You can simply classify those values to correct them out.

Note that there is a limitation. Numeric 2 classification metrics are not available in Workspace or Ad Hoc

Avatar

Level 3

This would be awesome. I will give it a try and get back to you

Avatar

Level 3

It worked!!!

Thank you so much hyderziaee

So I think the down side of this method is that you have to import all (historic) data manually, and any (future) value that was not mapped in the imported historic data it will not work, like value #10 below. is that correct?

Also would you please shed some light on why did we have to duplicate the values in these columns?

Key~account balance $~account balance $^~value~

1429583_pastedImage_3.png

                

Key~account balance $~account balance $^~value~
0.000.000.00
3124.523124.523124.52

Avatar

Employee Advisor

Glad that this helped.

You are correct, you will need to import a value for it to work. You can do a browser export for a time frame (do 3 to 6 months at a time and classify those value which are not classified yet.

-----

~account balance $ is an internal name. Not used anywhere except in classification. It is for your own identification. I chose to simply copy the key value over. Could be anything.

~account balance $^~value~ is the actual numeric value to which the rate (here instances) is being multiplied to. Changing this would result in a different setup. Your scenario required the key column to be copied over.

-----

Also if you require decimal places, you can create a calculated metric and set the decimal places to two.

1429621_pastedImage_3.png

Note that this numeric 2 classification metric would only be available when you are running the parent report. For any other report, it will not show up for selection.

Avatar

Level 3

Yes I did create calculated metric to try to trick Adobe by calling the metric from Workspace, but it didnt work

Thanks again for your help. Looking forward to seeing numeric 2 metrics in worksplace and ad-hoc analytics