Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Value to Ratio with text

Hello,

I have a column of numbers rounded to the nearest tenth. I want to take that number and convert it to a fraction (simplified) and then turn that into a ratio with text.

Ex:

2.2

-> Convert to Fraction: 22/10

-> Simplify: 11/5

-> Create Ratio: 11 Apples to 5 Oranges (apples to oranges for example, might want to have a price ratio such as 15 lasers to 4 dollars)

Anyone know the QlikSense code that would allow me to do this?

1 Reply
Anonymous
Not applicable
Author

My end goal is to take a decimal value and be able to write a ratio (most simplified) for it.

Ex: .25 becomes 1 to 4