Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
EvandoGaspar
New Member

Convert number to letter - Billions and Millions

I have a column with information that I would like to add, but these numbers have letters and I am not able to convert. Does anyone have a solution please?

Following data, (B) indicating billions and (M) indicating millions.
1,06B
998,87M
1,21B

Tks.imagem01.jpg

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@EvandoGaspar you can create this calculated column:

 

Column = LEFT('Table'[Column1], LEN('Table'[Column1])-1) * if(RIGHT('Table'[Column1],1)="B",1000000000, if(RIGHT('Table'[Column1],1)="M",1000000))

 

SpartaBI_0-1655223413729.png

Then you could sum these as numbers.

 


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

View solution in original post

3 REPLIES 3
SpartaBI
Community Champion
Community Champion

@EvandoGaspar you can create this calculated column:

 

Column = LEFT('Table'[Column1], LEN('Table'[Column1])-1) * if(RIGHT('Table'[Column1],1)="B",1000000000, if(RIGHT('Table'[Column1],1)="M",1000000))

 

SpartaBI_0-1655223413729.png

Then you could sum these as numbers.

 


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

Very good! thank you so much!

@EvandoGaspar my pleasure. don't forget to mark it as a solution for community visabilty

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Top Solution Authors