Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
I saw another post that counts a especific value:
ColumnName1 = CALCULATE ( COUNTROWS (Table 1), Table 1[fieldName] = "Value")
I don't want to choose a constant value, I'd like to build a column that counts using a value from a column. Example:
Colors Count
Blue 3
Blue 3
Blue 3
Yellow 2
Yello 2
How to parse the Color column?
Solved! Go to Solution.
Hi. Use a new calculated column with this Code:
Column = COUNTROWS ( FILTER ( Table1, Table1[Color] = EARLIER ( Table1[Color] ) ) )
Hi. Use a new calculated column with this Code:
Column = COUNTROWS ( FILTER ( Table1, Table1[Color] = EARLIER ( Table1[Color] ) ) )
That "EARLIER" function is what I need! Thank you! Marked as answered.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 38 | |
| 31 | |
| 27 | |
| 26 |