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.
Hello, I am working on automating something that was previously in Excel. I would like to insert a goal, mid goal, and max goal and then take the actual current number and have PowerBi tell me if what goal has been met.
Solved! Go to Solution.
Hi @lamccra5 ,
@khaledHabib90 , good answer! And here is my solution.
Performance Category =
VAR Selected_Value = SELECTEDVALUE(Parameter[Parameter])
RETURN
IF(
ISBLANK(Selected_Value),
BLANK(),
IF(
Selected_Value < 60,
"non-performance",
IF(
Selected_Value <70,
"goal",
IF(
Selected_Value < 90,
"mid goal",
"max goal"
)
)
)
)
goal = 60, mid goal = 70, max goal = 90.
The results are as follows:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @lamccra5 ,
@khaledHabib90 , good answer! And here is my solution.
Performance Category =
VAR Selected_Value = SELECTEDVALUE(Parameter[Parameter])
RETURN
IF(
ISBLANK(Selected_Value),
BLANK(),
IF(
Selected_Value < 60,
"non-performance",
IF(
Selected_Value <70,
"goal",
IF(
Selected_Value < 90,
"mid goal",
"max goal"
)
)
)
)
goal = 60, mid goal = 70, max goal = 90.
The results are as follows:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
It should be something like the below, very similar to excel BTW
Create a calculated column, not a measure, using the below
Switch(true(),
Actuals >= max , "Max",
Actuals >= mid && actuals < max, "Mid",
Actuals >= goal && actuals < mid, "goal met",
"Goal not met")
If my reply helped you solve the issue, please accept it as the solution 🙂
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
8 | |
8 |