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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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?
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 59 | |
| 42 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 108 | |
| 100 | |
| 39 | |
| 29 | |
| 29 |