Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Conversion from bytes to gega/tera byte

I have a column(size) which I imported from MySQL database to the dashboard which is in bytes and I need to convert it into gega/tera bytes.     Table_name Table_type Size Abcr external ...
  • Icey's avatar
    6 years ago

    Hi Anonymous ,

    Is this what you want?

    If so,

    1. you can add two columns in Power Query Editor like so:

    2. Or you can create two columns or measures in Power BI Desktop.

    gega byte measure = DIVIDE(MAX('Table'[Size]),POWER(1024,3))
    tera byte measure = DIVIDE(MAX('Table'[Size]),POWER(1024,4))
    gega byte column = DIVIDE('Table'[Size],POWER(1024,3))
    tera byte column = DIVIDE('Table'[Size],POWER(1024,4))

    Best Regards,
    Icey

     

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