Forum Discussion

Kelsey024's avatar
Kelsey024
Frequent Visitor
8 years ago
Solved

Percent between 2 columns

Hello, I am having some trouble with calculating a percentage between 2 values in 2 different columns. I want to get the percentage of gallons consumed by the water target for that specific location...
  • v-yuta-msft's avatar
    8 years ago

    Hi Kelsey024,

     

    Create a measure in your table using DAX below:

    % of Water Target Used =
    DIVIDE ( [Consumption], [WATER TARGET] )

    Then change the format of [% of Water Target Used] to percentage.

     

    Regards,

    Jimmy Tao