I have a table which consists 2 column weight and units. And would like get help on DAX to create a new column measure which calculate all the weight in KG. I'm wondering is there have a solution like what I did in excel (=CONVERT(column,"lbm","kg")), directly put kg/pound/tons instead of putting the pound-to-kg number for calculation.
New measure (in KG)
Thanks for your attention and appreciate any help given.
@NickProp28 I will create a table with a unique value of the unit name and the conversation rate, and then set the relationship on the unit name with the main table. and then in the main table, I will put another column for the conversion like this
Converted Kgs =
MainTable[Weight] * RELATED ( NewTable[Conversion Rate] )
@NickProp28 you have to give the factor from units to Kgs, there is no inbuilt function. You can store the factor value in a table and then use it from that table to keep it more scalable and flexible.
Did I answer your question? Mark my post as a solution.
Proud to be a Super User! Appreciate your Kudos🙂 Feel free to email me with any of your BI needs.