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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors