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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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?
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 65 | |
| 50 | |
| 42 | |
| 23 | |
| 21 |
| User | Count |
|---|---|
| 139 | |
| 116 | |
| 53 | |
| 37 | |
| 31 |