Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
bobbydave
Creator III
Creator III

get rid of decimal points

I have a Calculated Dimension and if i could use a number function from the Number tab, it would work. However, there is none.

But my dimension below is

if( [Data Category]='Adjusted',

Num(ACT_GBP.Materiality, '##%'))

This gives me decimal points.

I'm trying to bring back figures without decimal points in percentage form.

By asking for num ##%, i know when i will get 2 numbers back, either to one decimal point if 8.2 and no decimal point if double figures like 20 or 40.

How can i just get whole numbers?

1 Solution

Accepted Solutions
vishsaggi
Champion III
Champion III

Did you try Num(ACT_GBP.Materialty, '#0%') ?

IF not can you share some sample data please.

View solution in original post

3 Replies
vvvvvvizard
Partner - Specialist
Partner - Specialist

floor(if( [Data Category]='Adjusted',

Num(ACT_GBP.Materiality, '##%')))

vishsaggi
Champion III
Champion III

Did you try Num(ACT_GBP.Materialty, '#0%') ?

IF not can you share some sample data please.

bobbydave
Creator III
Creator III
Author

That was exactly it

THanks