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.
So, i have a table like this which has the energy consumption reading for different energy type.
When there is a shutdown in the plant, the gas reading drops immediately, so whenever the gas reading is below 3, it indicates that there was a shutdown.
What i want to do is calculate the energy consumption when the machine was running, which means i have to subtract the Gas, Steam and Electricity reading during the shutdown from the total energy consumption of the day.
So, i want the SD value to be 1 for both steam and electricity at all the Date and Time instances when Gas is below 3 or SD is 1. And since i am new to PowerBI, i really dont have much idea on what to do to be honest.
I hope the question is clear, and any help would be really really be helpful for me.
Thanks in advance!
Solved! Go to Solution.
Hi @Viswajth_Nair95
Please refer to sample file with the solution https://www.dropbox.com/t/87UNh6OAhZDbijhM
SD =
IF (
CALCULATE (
SELECTEDVALUE ( EnergyConsumption[Energy] ),
EnergyConsumption[EnergyType] = "Gas",
ALLEXCEPT ( EnergyConsumption, EnergyConsumption[Date], EnergyConsumption[Time] )
)
< 3,
1
)
That worked like a charm, thank you so much for that
Hi @Viswajth_Nair95
Please refer to sample file with the solution https://www.dropbox.com/t/87UNh6OAhZDbijhM
SD =
IF (
CALCULATE (
SELECTEDVALUE ( EnergyConsumption[Energy] ),
EnergyConsumption[EnergyType] = "Gas",
ALLEXCEPT ( EnergyConsumption, EnergyConsumption[Date], EnergyConsumption[Time] )
)
< 3,
1
)
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
13 | |
11 | |
9 | |
6 |