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
I have a formula in excel that is =COUNTIF($P$2:$P2,P2) and have been looking around the forums for a replica in PBI but am having no luck.
Is anyone able to help me.. What the desired result is for example would be..
ID: Count: All i have been able to manage at the moment is this (which Is not helpful)
1 1 1
2 1 1
3 1 3
3 2 3
3 3 3
4 1 2
4 2 2
5 1 1
6 1 1
Can someone please help out with this..
Hi
You can add an Index column starting with 1 in your query. This will have unique value for each row.
Post this create calculated measure as
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 134 | |
| 96 | |
| 78 | |
| 67 | |
| 65 |