Forum Discussion

baw556's avatar
baw556
Frequent Visitor
7 years ago
Solved

Summing Column on Multiple Category

Hello All,   I have this table   I already have a Tabular Model created to be used in Power BI. I was wondering how to calculated the adjusted consumption using DAX based on its formula sho...
  • AlB's avatar
    7 years ago

    Hi baw556 

    Do you want it across all asset types and classes? If so, place tis measure in a card visual:

     

    Measure =
    VAR Constant_ = 4.3456
    RETURN
        CALCULATE ( SUM ( Table1[Consumption] ), Table1[Fuel] = "Electricity" )
            + CALCULATE ( SUM ( Table1[Consumption] ), Table1[Fuel] = "Gas" ) * Constant_
    

      

    Please mark the question solved when done and consider giving kudos if posts are helpful.

    Cheers  Datanaut