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 a set of ids
1
2
3
1
1
2
4
5
5
and i want the id and its count
1 - 3 times
2 - 2 times
3 - 1 time
4 - 1 time
5 - 2 times
and i have written a measure for the same
Measure = CONCATENATE(DISTINCT(Activityx[Column1.AppId]), DISTINCTCOUNT(Activityx[Column1.AppId]))
but i am unable to get the expected result. How can i achive that?
Solved! Go to Solution.
Based on my test, here is one way for your reference.
Measure = MAXX ( Table1, Table1[Column1] ) & " - " & COUNTX ( Table1, Table1[Column1] ) & " time" & IF ( COUNTX ( Table1, Table1[Column1] ) > 1, "s", "" )
Based on my test, here is one way for your reference.
Measure = MAXX ( Table1, Table1[Column1] ) & " - " & COUNTX ( Table1, Table1[Column1] ) & " time" & IF ( COUNTX ( Table1, Table1[Column1] ) > 1, "s", "" )
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 |
---|---|
16 | |
4 | |
2 | |
1 | |
1 |
User | Count |
---|---|
29 | |
3 | |
3 | |
2 | |
2 |