Forum Discussion
kushal258
3 years agoRegular Visitor
Converting the Data Type
Suppose I have a column in this way and want to convert it to whole number data type to perform certain calculations, then how can it be done? I did try creating a new column in Power Query by...
- 3 years ago
Hi,
try this
if [Column1.2] ="M" then Value.Multiply([Column1.1.2],0.001) else [Column1.1.2]
AlienSx
Super User
3 years agolet
Source = funding_table,
new_funding =
Table.AddColumn(
Source, "new funding",
(x) =>
try Number.From(Text.BetweenDelimiters(x[Funding], "$", "B"))
otherwise Number.From(Text.BetweenDelimiters(x[Funding], "$", "M")) / 1000
)
in
new_fundingkushal258
3 years agoRegular Visitor
Thanks AlienSx