Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi
I have problem to make a new column value with same ID.
Here is the example of data:
I need to make a new column to distinguish if "pass/failed/not evaluate" with same ID.
- If A ever got "passed", then to fill all collums that result="passed" with id=A
- If B got "failed" and no "passed", then to fill all collums that result="failed" with id=B
- If someone didn't get "passed" or "failed", then to fill all collums that result="not evaluate" with id=someone
I have attached the pbi file to the question, please kindly help to give some advices, thanks.
Solved! Go to Solution.
Hi @Roy_W
Please refer to attched sample file with the solution
2022 Summary =
VAR T1 =
CALCULATETABLE (
VALUES ( Query1[passed/failed/not evaluate] ),
ALLEXCEPT ( Query1, Query1[id] )
)
RETURN
SWITCH (
TRUE ( ),
"passed" IN T1, "passed",
"failed" IN T1, "failed",
"not evaluate"
)
Hi @Roy_W
Please refer to attched sample file with the solution
2022 Summary =
VAR T1 =
CALCULATETABLE (
VALUES ( Query1[passed/failed/not evaluate] ),
ALLEXCEPT ( Query1, Query1[id] )
)
RETURN
SWITCH (
TRUE ( ),
"passed" IN T1, "passed",
"failed" IN T1, "failed",
"not evaluate"
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |