Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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 |
---|---|
90 | |
84 | |
65 | |
62 | |
57 |
User | Count |
---|---|
147 | |
113 | |
95 | |
81 | |
71 |