Complete the code to create a KPI card showing the current temperature.
kpi_card = createKPI(title="Temperature", value=[1])
The KPI card should display the current temperature, so current_temp is the correct value.
Complete the code to calculate the uptime percentage for the last 24 hours.
uptime_percentage = ([1] / total_time) * 100
Uptime percentage is calculated by dividing the uptime by total time, then multiplying by 100.
Fix the error in the DAX measure to calculate average pressure.
AveragePressure = AVERAGE([1][Pressure])The correct table name is SensorData which contains the Pressure column.
Fill both blanks to create a filter that shows only alarms with severity higher than 3.
FilteredAlarms = FILTER(Alarms, Alarms[Severity] [1] [2])
The filter should select alarms where severity is greater than 3, so use > and 3.
Fill all three blanks to create a measure that counts faults occurring in the last 7 days.
FaultCountLast7Days = CALCULATE(COUNT(Faults[ID]), FILTER(Faults, Faults[Date] [1] TODAY() [2] 7 && Faults[Date] [3] TODAY()))
The filter checks faults where the date is greater or equal to 7 days ago (TODAY() - 7) and less or equal to today.