Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load inline with "," as a decimal separator

I want to do this:



[WhatIfPreço]:
LOAD * INLINE [
Mudança Preço
-.2
-.15
-.1
-.05
-.03
-.01
0
.01
.03
.05
.1
.15
.2
];




The problem is that the decimal separator is set to "," as I am in Brazil so that does not work as expected.

The question is: How do i write this when the decimal separator is comma?

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You can specify the delimiter to be used in the load:

] (delimiter is '|') ;

and then use commas in your data.

View solution in original post

5 Replies
martin59
Specialist II
Specialist II

Hi,

You have to do something like this :


table:
LOAD Replace([Mudança Preço],'/',',') as [Mudança Preço]
INLINE [
Mudança Preço
-0/2
-0/15
-0/1
...
];


Hope that helps you

Not applicable
Author

It worked!

Thank you.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You can specify the delimiter to be used in the load:

] (delimiter is '|') ;

and then use commas in your data.

amien
Specialist
Specialist

why not just "2,2" "2,1" etc?

natalia_sterniak
Contributor II
Contributor II

Because ',' will be treated as a separator between new dimensions and values