Level 1

0% to

Level 2

Tip /

to gain points, level up, and earn exciting badges like the new
Mission!

View all

## Revenue with no decimal places

VasconcelosAqui
Level 2

Likes

7 likes

Total Posts

27 posts

0 solutions
View profile

VasconcelosAqui
Level 2

Likes

7 likes

Total Posts

27 posts

0 solutions
View profile
VasconcelosAqui
Level 2

02-09-2019

Hello there, guys,

I have recently deployed one solution to adobe analytics for a client and on workspace the revenue is comming as integers and not as decimals. As if the values are beeing applied with Math.root and being round. Is there some configuration that I should do to get the numbers in decimal?

Please let me know if you faced that problem or have an solution to that.

#### Accepted Solutions (1)

Asheesh_P
MVP

Likes

130 likes

Total Posts

334 posts

146 solutions
View profile

Asheesh_P
MVP

Likes

130 likes

Total Posts

334 posts

146 solutions
View profile
Asheesh_P
MVP

02-09-2019

You need to make sure when you parse revenue value as integer parseInt(), also use JavaScript toFixed() Method else it will only return integer values. This should solve your issue.

e.g.

revenueValue = 10.5266;

var revenueVariable = parseInt(revenueValue).toFixed(2);

s.products="Mens;Shoes;1;revenueVariable",

Thanks!

Asheesh

Community Manager

Likes

339 likes

Total Posts

2,340 posts

819 solutions
View profile

Community Manager

Likes

339 likes

Total Posts

2,340 posts

819 solutions
View profile
Community Manager

03-09-2019

Thanks,
Jantzen

harish_kumar
Employee

Likes

14 likes

Total Posts

35 posts

13 solutions
View profile

harish_kumar
Employee

Likes

14 likes

Total Posts

35 posts

13 solutions
View profile
harish_kumar
Employee

03-09-2019

You may need to create calculated metric from Revenue metrics and set the decimal point . Standard Revenue metrics can not be changed.

ursboller
MVP

Likes

525 likes

Total Posts

1,020 posts

257 solutions
View profile

ursboller
MVP

Likes

525 likes

Total Posts

1,020 posts