Forum Discussion

jwint's avatar
jwint
Frequent Visitor
4 years ago
Solved

Beginner question

Hello,    I have a dataset with 4 columns showing deliveries to our facility.  One for the date , one for the customer, one for quantity and one for unit of measure.  The unit of measure can be eit...
  • DataInsights's avatar
    4 years ago

    jwint,

     

    Try this calculated column. Add the correct conversion factor for Gaylords and Gallons.

     

    Quantity in Tons =
    SWITCH (
        Table1[Unit of Measure],
        "Gaylords", Table1[Quantity] * <Gaylord conversion factor>,
        "Gallons", Table1[Quantity] * <Gallon conversion factor>,
        Table1[Quantity]
    )