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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Blue407
Frequent Visitor

How to add column into table that contains a rounded up number from another column in the same table

I have a table containing a list of PC's, one of the columns is drive capacity in bytes. (Data export from Intune, via Graph)

How do I create a new column that contains a rounded up value based on the drive capacity?

Same challenge for memory, also in bytes.

 

Example data:

 

totalStorageSpaceInBytes
1021821583360
509722230784
509722230784
1002444947456
1021821583360
509722230784
509722230784
510770806784
509722230784
509722230784
509722230784
509722230784
509722230784
509722230784
509722230784
286129127424
509722230784
509722230784
509722230784
510586257408
261216010240

 

I'd like a new column called 'DriveCapacity' that contains the simplistic Gb calculation from this drive capacity.  Such as 1TB or 512GB

 

What is the syntax of a formula to do this?

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Blue407 Try this:

Column = ROUNDUP( [totalStorageSpaceInBytes] / 1073741824, 0 ) & "GB"


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Blue407
Frequent Visitor

Thats perfect, thankyou!!

Greg_Deckler
Community Champion
Community Champion

@Blue407 Try this:

Column = ROUNDUP( [totalStorageSpaceInBytes] / 1073741824, 0 ) & "GB"


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.