The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
If the value is greater than 4 , it's also greater than 1 so it's already been dealt with.
Also use a variable and a switch statement instead.
Try this:
Attendance Measure =
VAR Amount =
SUM ( 'Monthly Goals'[Attendance Goal] ) - SUM ( Attendance[Unexcused Hours Taken] )
VAR Result =
IF ( Amount = 0, 0, IF ( Amount >= 1 && Amount <= 4, 4, IF ( Amount > 4, 8 ) ) )
RETURN
Result
or
Attendance Measure =
VAR Amount =
SUM ( 'Monthly Goals'[Attendance Goal] ) - SUM ( Attendance[Unexcused Hours Taken] )
VAR Result =
SWITCH (
TRUE (),
Amount = 0, 0,
Amount >= 1 && Amount <= 4, 4,
8
)
RETURN
Result
User | Count |
---|---|
17 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
9 | |
8 |