# How to calculate a ratio like 2:1

United Kingdom ⚪️

Hello, been looking at this one and cannot see how to make the calculation in a ETL or Beast Mode.

What I am trying to achieve is a ratio or products sold, for example we sell 2 used and 1 new i want to display a ratio of 2:1.

Is this possible?

In my data i have the following available:

1) N/U = Text value of New or Used per product sold

2) New = if new then 1, all other values 0

3) Used = if new then 1, all other values 0

So i can get the total products sold, total new and total used sold but cannot seem to work out how to display it how i need/want it to display.

Any help will be appreciated.

Thanks

Rob

• Portland, Oregon 🥷

You can use the formula tile and the concatenate function to build your ratio string like this:

```CONCAT(`Usedfield`,':',`Newfield`)
```

**Check out my Domo Tips & Tricks Videos

**Make sure to any users posts that helped you.

@robdmitchell Also to build on what @MarkSnodgrass posted, if you have unusual ratios (216:81), then you could do the following:

CONCAT(SUM('UsedField')/SUM('NewField'),' : ','1')

This would always give you the number of used for one new.

**Did this solve your problem? Accept it as a solution!**

@robdmitchell Yes, use the ROUND() function on your division in the beast mode:

ROUND(SUM('U')/(SUM('N'),2)