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

Expression for Quantity without decimals in Listbox

I want to show quantity in my listboxes without any decimals.

What expression can I use since I can't manually change the number format in listboxes??

1 Solution

Accepted Solutions
sivarajs
Specialist II
Specialist II

check your 3rd listbox in the attached file

View solution in original post

9 Replies
sivarajs
Specialist II
Specialist II

use

round(field name)  or num(fieldname,'#,###') in listbox expression

IAMDV
Luminary Alumni
Luminary Alumni

Hi Chris,

You can change the formatting of the ListBox but the underlying values still hold decimal places.

ListBoxFormatting.png

However, if wanted to exclude the decimal places then you can use Ceil() or Floor() functions as Expression in the ListBox.

Cheers - DV

www.QlikShare.com

Anonymous
Not applicable
Author

Sivaraj-

using round() worked for some, but it changed many to Null values

DV-

using ceil() and Floor()

did the same thing as round, and changed many to null values

Is there not an expression like the following for formatting money values??

Money(sum(Sales), 'R#,##0', '.' , ',' )

Anonymous
Not applicable
Author

Hi Leni

thanks, but also not working out.

showing null values and changed the number format to:

220,##0

Anonymous
Not applicable
Author

Hi,

Just try this

=num(Money(FileName),'#,##0')

IAMDV
Luminary Alumni
Luminary Alumni

Chris - Please can you post the sample QV file or some sample data?

Thanks - DV

Anonymous
Not applicable
Author

for

ceil()

floor()

round()

=Num(Quantity,'##0')

it only shows values to the hundreds and anything greater is marked as Null

any ideas??

sivarajs
Specialist II
Specialist II

check your 3rd listbox in the attached file

Anonymous
Not applicable
Author

Hi,

In your 3rd listbox -> 2nd expr -> give "=sum(quantity)" instead of "sum(quantity)".

When I gave "=" sign in front of tat expr, it didnt show the decimal value

Just give a try