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
Hi,
ID Amt CalculatedColumn
1 1000 3
1 2000 3
1 3000 3
2 10 2
2 20 2
I want to creat a calculated column where it counts number of id's repeated and shows same value for all rows for that ID
(as showned in above table). Kindly let me know how to create calculatedColumn for this
Thank you
do u mean this
CALCULATE(COUNTROWS(Table),Table[Id]=EARLIER(Table'[Id]))
I am not sure how to write VAR or return function in Tabular Model DAX
Its not working with my formular it repeating total count of table instead of repeating total count for each ID
@austinsense btw I am using Tabular model 2012 and not 2016 so VAR anc Return function is not available
Yep, sorry we should have covered that
sounds like you got the problem solved?
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 |