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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
EvandoGaspar
Regular Visitor

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.