Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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 extracting text between delimiter.
I gave start delimiter as $ and end delimiter as B.
However certain values are in millions (M).
Can anyone please help me ?
Thank You
Solved! Go to Solution.
Hi,
try this
if [Column1.2] ="M" then Value.Multiply([Column1.1.2],0.001) else [Column1.1.2]
let
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_funding
Thanks AlienSx
From Funding to Funding_New column
Hi,
try this
if [Column1.2] ="M" then Value.Multiply([Column1.1.2],0.001) else [Column1.1.2]
Thank You Serpivs64. It has worked
Hi,
you can split your column by numbers of character two time; the first from the end
and the sceon from the start to get the currency and the create a conditional column based on N or B to transform your number
If this post is useful to help you to solve your issue consider giving the post a thumbs up
and accepting it as a solution !
Thank you for your feedback,
I did try that earlier but there is still one problem. There are certain values in Millions ($USD) and other values in Billions ($USD). So I would have to add "0." to values which are in Millions ($USD).
Please make an example of what you want to achieve
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |