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

Replace . instead of ,

Hello,

I tried this, Why this is not allowing

Sales

1,34

2,34

avg(Replace(Replace('Sales',','),'.') Sales)

Expected O/P is

Sales

1.34

2.34

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
21 Replies
migueldelval
Specialist
Specialist

Hi Anil,

Could you post your answer, to help other people?

Regards

Miguel del Valle

robert_mika
Master III
Master III

Is this front or back end?

Is Sales entry per each row or is this a field name?

Anil_Babu_Samineni
Author

Front End only, But i don't want to change use subfield from Scripting.

I am trying to create Pivot table. In that Pivot measure i need to use . instead of ,

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
robert_mika
Master III
Master III

Could you post your data please?

Screenshot maybe?

Anil_Babu_Samineni
Author

PFA.

I mention Expected O/P Also

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
adamdavi3s
Master
Master

Does your data field 'Sales' actually have a , in it or is this just the way the number is being displayed?

Check your decimal separator in the default block of the load script

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

replace(Text(Sales), ',', '.')

But you will get not number but text instead.

Anil_Babu_Samineni
Author

Adam, Check the Attachment

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
Anil_Babu_Samineni
Author

I want to calculate Average with That?

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