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

How to change the number format

Hi,

In my dashboard, I have a expression where data is coming as 590.988, I want to replace the decimal with comma separator like 590,988

Please suggest.

Thanks

9 Replies
Chanty4u
MVP
MVP

try this

Replace(Value,',','.');

or

SET DecimalSep=','; // . instead of .

Chanty4u
MVP
MVP

abc_18
Creator II
Creator II
Author

Hi Chanty,

I changed the DecimalSep, but still I am getting value as 590.988.


I tried to use the 'num' function, but not getting proper output.

Anil_Babu_Samineni

You said, You have expression. What expression you have?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
abc_18
Creator II
Creator II
Author

Expression is:-

if(%CurrencyDesc = 'D&C Currency',sum($(curr_year)sales_sm_fxa)/vPer,sum($(curr_year)[sales_$(vCurrency_Fxx)])/vPer)

and I am trying to change the format using 'num' function

Anil_Babu_Samineni

May be this?

if(%CurrencyDesc = 'D&C Currency',Num(sum($(curr_year)sales_sm_fxa)/vPer, ''#,##,##0'),Num(sum($(curr_year)[sales_$(vCurrency_Fxx)])/vPer, ''#,##,##0'))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable

Shikha , I guess your currency format is in Euro and assuming this is something that was changed in the main tab. Check SET money format.

neha_shirsath
Specialist
Specialist

In your data field its comma? or after calculation its showing like this?

el_aprendiz111
Specialist
Specialist

Hi,

=NUM(590.988,'#,###',',','.')



NUMCOM.png