Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hii Guys,
I have one challange in my project.I want emp Rating wise emp count. If am select rating 1 in slicer i want to show in card that show emp count of rating 1 employees.
Here is the sample data
| EMP CODE | RATING |
1001 | 1 |
| 1002 | 2 |
| 1003 | 1 |
| 1004 | 5 |
| 1005 | 3 |
| 1006 | 2 |
| 1007 | 4 |
| 1008 | 5 |
| 1009 | 1 |
| 1010 | 4 |
| 1011 | 3 |
Solved! Go to Solution.
Hi @PRADEEPJAAN,
You can achieve this by creating a DAX measure that counts the number of employees based on the selected rating in the slicer.
Use the following DAX formula:
Emp Count by Rating =
VAR SelectedRating = SELECTEDVALUE('Table'[RATING])
RETURN
CALCULATE(
COUNT('Table'[EMP CODE]),
'Table'[RATING] = SelectedRating
)
🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!
Hi,
to achieve the rating wise count you can use this measure
Rating Wise count=
var select=selectedvalue(tablename[rating])
var result=If(select,calculate(tablename[employee code]))
return
result
Hi @PRADEEPJAAN,
You can achieve this by creating a DAX measure that counts the number of employees based on the selected rating in the slicer.
Use the following DAX formula:
Emp Count by Rating =
VAR SelectedRating = SELECTEDVALUE('Table'[RATING])
RETURN
CALCULATE(
COUNT('Table'[EMP CODE]),
'Table'[RATING] = SelectedRating
)
🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |