Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello, I have got a column showing status of deals i.e. Oplen, Lost and Won. I would like to use dax syntax to get the value under a measure. The code below i have used is retuning an error message "Too few arguments were passed to the CONTAINS function. The minimum argument count for the function is 3."
Thank you in advance.
Solved! Go to Solution.
try this,
Count of Status Lost =
CALCULATE(COUNTROWS('Table'),'Table'[Status] = "Lost")
Result:
Thanks,
Arul
You need the table as the first argument to CONTAINS
Lost deals =
COUNTROWS (
FILTER ( 'Pipeline', CONTAINS ( 'Pipeline', 'Pipeline'[Status], "Lost" ) )
)
try this,
Count of Status Lost =
CALCULATE(COUNTROWS('Table'),'Table'[Status] = "Lost")
Result:
Thanks,
Arul
User | Count |
---|---|
93 | |
83 | |
77 | |
75 | |
66 |
User | Count |
---|---|
115 | |
105 | |
93 | |
65 | |
60 |