Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I have a table called "List" with two column...Name, and Team such as this:
I would like to create a measure to count the number of Names (rows) that belong to the same Team as the name slected in a slicer.
For example, I have a slicer for the Name column... If I select Charlie from that slicer, I could like a measure to output 3 because Charlie is in team B and there are 3 Names in team B.
I have the following DAX: CALCULATE (COUNTROWS('List'),FILTER('List','List'[Team]=SELECTEDVALUE('List'[Team])))
But it isn't calculating correctly.
Please Help!
Solved! Go to Solution.
[Team Count] = var __oneNameSelected = hasonefilter ( T[Name] ) var __teamCount = calculate( countrows ( T ), all ( T ), values ( T[Team] ) ) return if( __oneNameSelected, __teamCount )
Best
Darek
[Team Count] = var __oneNameSelected = hasonefilter ( T[Name] ) var __teamCount = calculate( countrows ( T ), all ( T ), values ( T[Team] ) ) return if( __oneNameSelected, __teamCount )
Best
Darek
Thank you!!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |