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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Frormatting column A based off text in column B

I have two columns on hard drive space one colum has the disk size eg (85) and the other has the the format EG (TB/GB) I need all the date to be in GB so I need a way to convers all the ones that have a TB in the column associated with disk size. because when it totals out is add 1.6 TB as 1.6 GB..

2 REPLIES 2
v-xuding-msft
Community Support
Community Support

Hi @Anonymous  ,

Could you tell me if your problem has been solved? If it is, kindly mark the helpful answer as a solution if you feel that makes sense. Welcome to share your own solution. More people will benefit from here.

 

Best Regards,

Xue

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Aree
Resolver I
Resolver I

Hey @Anonymous 

You can create a custom column that calculates it.

Size in GB = 
IF(Table1[UoM] = "GB", Table1[Size],
    IF(Table1[UoM] = "KB", Table1[Size]/1000000,
        IF(Table1[UoM] = "TB", Table1[Size]*1000)))

My test data look like this
test data.PNG

 

I use a column called UoM (Unit of Measure) and this column is used my IF statement when generating the conversion into GB.

 

Hope this helps.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors