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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Converting certain rows from Feet/inches to Millimeters

Hi All,

 

I am reltively new to Power BI and having problems converting some rows in a table from Imperial measurements to Metric.

 

To explain I have an SQL Database and it pulls out large ammounts of data from 3D models (Architectural 3D models), there are normally thousands of 3D elements in a file which have varying parameters. for eg Type, Material, New Construction/Demoplished etc Which are all word values, there are yes/no values, some are number values but are not measurements (codes) and others are measurement values; Length, width, offset etc.

I work for an international company and we do projects all over the world so the US projects are in Imperial and other are obvioulsy Metric, but all the data goes into one big list of millions of parameters consisting of the different information above.

 

Now the original program that we are pulling the data from exports all the measurements in Imperial, (it converts it internally for Metric projects, but Imperial is defualt)

So my question; How do I convert only the Imperial measurements that should be Metric to be able show in the reports as Metric.

 

Regards

justin

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

Hi @Anonymous ,

I create a sample using DAX formula you can have a try.

 

I have two tables. And there is a many-to-one relationship between the column of FROM_UNIT and UNIT.

1.png2.png3.png

Create a measure.

Total =
    SUMX ( Table2, Table2[AMOUNT] * LASTNONBLANK ( 'Table1'[RATE], "" ) ) & " " & LASTNONBLANK ( 'Table1'[TO_UNIT], "" )

5.jpg4.png

 

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.

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.
Anonymous
Not applicable

I need to convert these columns From Feet to Millimeters

image.png

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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