Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 shown below the table?
Thanks,
Solved! Go to Solution.
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
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
Thanks AIB for your response and I apologize for late reply.
Yes, I wanted to aggregate accross asset type and class.
When I appplied the formula, it only aggregates the valus for Electricity and doesn't include the secod part of the formula (Gas cons. * constant)
Any thoughts?
Thanks,
Baw556
The desired result from below should be Adjusted_consumption approx. 203. However, using the formula above, I'm still getting 55.
Thanks in advance.
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
30 | |
13 | |
11 | |
9 | |
6 |