Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone:
I Hope you can help me. I need create a new column to assign one status bassed in differents conditions and values:
I have two scenarios for the same table by ID:
Scenario 1:
I need the status Assigned in all ID rows, only if at least my field ReleasedConfirm contain one value in a row with FALSE.
Scenario 2:
If the field ReleasedConfirm for the same ID contain value True, place the Assigned Status in that row, and when have not projectId number place Free Status in thats rows.
These are my scenarios for the same table by differents ID, to create one column status with the contions explained above.
Regards and thanks for your time to help me!
Solved! Go to Solution.
Hi @RicLup
If [ReleasedConfirm] column of "True/False" type, please create a column below:
Column =
VAR counts =
CALCULATE (
COUNT ( Sheet1[ID] ),
FILTER (
ALLEXCEPT (
Sheet1,
Sheet1[ID]
),
[ReleasedConfirm]
= FALSE ()
&& NOT (
ISBLANK ( [ReleasedConfirm] )
)
)
)
RETURN
IF (
counts > 0,
"Assigned",
IF (
[ProjectId]
<> BLANK (),
"Assigned",
"Free"
)
)
If [ReleasedConfirm] column of "text" type, please create a column below:
Column 3 =
VAR counts =
CALCULATE (
COUNT ( Sheet1[ID] ),
FILTER (
ALLEXCEPT (
Sheet1,
Sheet1[ID]
),
FIND (
"FALSE",
[ReleasedConfirm2],
1,
0
) > 0
)
)
RETURN
IF (
counts > 0,
"Assigned",
IF (
[ProjectId]
<> BLANK (),
"Assigned",
"Free"
)
)
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @RicLup
If [ReleasedConfirm] column of "True/False" type, please create a column below:
Column =
VAR counts =
CALCULATE (
COUNT ( Sheet1[ID] ),
FILTER (
ALLEXCEPT (
Sheet1,
Sheet1[ID]
),
[ReleasedConfirm]
= FALSE ()
&& NOT (
ISBLANK ( [ReleasedConfirm] )
)
)
)
RETURN
IF (
counts > 0,
"Assigned",
IF (
[ProjectId]
<> BLANK (),
"Assigned",
"Free"
)
)
If [ReleasedConfirm] column of "text" type, please create a column below:
Column 3 =
VAR counts =
CALCULATE (
COUNT ( Sheet1[ID] ),
FILTER (
ALLEXCEPT (
Sheet1,
Sheet1[ID]
),
FIND (
"FALSE",
[ReleasedConfirm2],
1,
0
) > 0
)
)
RETURN
IF (
counts > 0,
"Assigned",
IF (
[ProjectId]
<> BLANK (),
"Assigned",
"Free"
)
)
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you very much for the quick answer, it works great.
Regards!!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |