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.
I have my table like this
Name Hasloggedin
A Yes
B Yes
C No
D Yes
I want ot return names where hasloggedin= Yes and hasloggedin=no.
If iam using DAX =Calculate(distinct(name),Hasloggedin="Yes") I am getting an error multiple values found where single value expected, how to do it??
Solved! Go to Solution.
Hi @Anonymous
You can use the below DAX measures.
Yes = CONCATENATEX( FILTER( YourTable, YourTable[Hasloggedin] = "Yes" ), YourTable[Name], ", " )
No = CONCATENATEX( FILTER( YourTable, YourTable[Hasloggedin] = "No" ), YourTable[Name], ", " )
works fine but Iam having problem If i have multiple value in my name column, if i use disitnct its showing the same error (multuiple values supplied when expecting 1 value)
works like charm, thanks
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 |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |