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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Data format


I have a staright table with measures as sales and quantity and have two buttons for selection(sales and quantity).

On clicking sales button it will display the sales values and on clicking the quantity button it will dispaly quantity related values.

My requirement is when i will click on sales button it should show me the vlaues in price format and the quantity values in number format.

Can anyone please help me on this ?

1 Solution

Accepted Solutions
SunilChauhan
Champion II
Champion II

hope you using some variable

so you can use like below

if( var=Value NUm(value,#.##0,00 kr;-#.##0,00 kr),NUm(Volume,'#,##'))

hope this helps

Sunil Chauhan

View solution in original post

13 Replies
alexandros17
Partner - Champion III
Partner - Champion III

when you display the quantity values e.g. sum(qtyValues) write:

Num(sum(qtyValues), '#.##0')

and with prices:

Num(Sum(price), '€ #.##0,00;-€ #.##0,00')

anbu1984
Master III
Master III

In Chart Properties (Number --> Expression), Select number format settings

SunilChauhan
Champion II
Champion II

In expression itself you can apply formats

using NUM function

like Num(FieldName,'$#') for ineteger whith $

like Num(FieldName,'$#.00') for decimal whith $

like Num(FieldName,'$#,##.00') for decimal whith $

for thousand seperator and decimal and $

you can also take money format using number(properties-> number-> money) see and apply using text box

hope this helps

Sunil Chauhan
Anonymous
Not applicable
Author

have changed the format to money and number..but its not working.

SunilChauhan
Champion II
Champion II

can you please attached the sample

Sunil Chauhan
Anonymous
Not applicable
Author

Try like this

In the Script create a variable

Let vSum=Num(sum(qtyValues), '#.##0');

Let vPrice=Num(Sum(price), '€ #.##0,00;-€ #.##0,00');

Anonymous
Not applicable
Author

Issue.png

SunilChauhan
Champion II
Champion II

can you give example which format you want your numbers/amount

Sunil Chauhan
Anonymous
Not applicable
Author


For value i need in money format and for volume its like number format.