Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Difference between MIN and current value for filtered incremental values

The dataset looks something like this and is only downloaded for a given month: data.energy location.circuit received 24026 total 10/08/2019 00:59 23906 total 09/08/2019 21:50 2258...
  • v-yuta-msft's avatar
    6 years ago

    Anonymous ,

     

    Create a calculate column using dax below:

    EnergyUsed = SWITCH(August[location.circuit], "total", August[data.energy] - 22000, "socket", August[data.energy] - 9900, "light", August[data.energy] - 2000)

     

     

    Community Support Team _ Jimmy Tao

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