Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I need help.
I currently have this kind of data (green cells). I would need to add a new column that would contain the value "yes" if there is at least one "yes" for a given order.
I hope you understand me.
How can I do that?
MC
Solved! Go to Solution.
try to write like this
Column =
VAR _order = 'Table'[order]
VAR _RESULT =
CALCULATE (
COUNTROWS (),
FILTER (ALL ( 'Table' ),
'Table'[order] = _order
&& 'Table'[something] = "yes")
)
RETURN
IF ( _RESULT = 1, "YES", "NO" )
try to write like this
Column =
VAR _order = 'Table'[order]
VAR _RESULT =
CALCULATE (
COUNTROWS (),
FILTER (ALL ( 'Table' ),
'Table'[order] = _order
&& 'Table'[something] = "yes")
)
RETURN
IF ( _RESULT = 1, "YES", "NO" )
User | Count |
---|---|
95 | |
86 | |
78 | |
72 | |
66 |
User | Count |
---|---|
113 | |
105 | |
84 | |
65 | |
64 |