Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
bharatkishore
Creator III
Creator III

Num Format

Hi,

I have the following number

Num Format.PNG

expression i have written is

num(Sum({<[AB]={"Current"},[CD]={"*"}>}[Amount]),'$ #,##0')

But i need output as

$37.16.

Can you guys please help me on this

Thanks,

Bharat

9 Replies
Chanty4u
MVP
MVP

did u tried

num(Sum({<[AB]={"Current"},[CD]={"*"}>}[Amount]),'$ #.#0')

Money#([urfield])

avinashelite

Did not get your requirement ...could you elaborate more...

you need to round of the values to thousand or laks ?? how 

bharatkishore
Creator III
Creator III
Author

Hi Chanty,

I have tried this but i am getting the value as

3768579921.16(without comma)

avinashelite

if you need the comma try like this

num(Sum({<[AB]={"Current"},[CD]={"*"}>}[Amount]),'$ ###,###,###,###,###,##0')

Digvijay_Singh

Try like '$ ##,#0.00'

bharatkishore
Creator III
Creator III
Author

Hi Avinash,

I have given the expression as

sum(Amount).

I am getting the value as 3768579921.16

Now i need to get value as integer with dollar symbol and i have given expression as

num(Sum([LC2 Amount]),'$ #,##0').

After giving this expression i am getting the value as $3,768,579,921

But now my requirement is in need to get the above value as

$37.16(round with two decimals and numbers in millions).

Hope you got it..

bharatkishore
Creator III
Creator III
Author

I tried your expression Digvijay but the first numbers should be only 2 numbers instead of 6 to 7 integers.

Digvijay_Singh

=num(3768579921.16/100000000,'$ ##.00')

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try this

num(Sum({<[AB]={"Current"},[CD]={"*"}>}[Amount]),'$ #,##0.00')


Regards,

Jagan.