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,
Simple question, I suppose.
I have 2 columns.
A: unique bookingID
B: customerID for those bookings
In column C I would like to see how often customerID occurs from column B; often that customerID occurs 10 times or so. So on each row (for each bookingID), I would like to see in column C how often the customerID occurs.
How would achieve this in Power BI? Using a custom column?
Solved! Go to Solution.
@Anonymous ,
new columns
Count across booking ID
countx(filter(table ,[Customer ID] =earlier([Customer ID])),[Customer ID])
Count across within booking ID
countx(filter(table ,[Customer ID] =earlier([Customer ID]) && [Booking ID] =earlier([Booking ID])),[Customer ID])
@Anonymous ,
new columns
Count across booking ID
countx(filter(table ,[Customer ID] =earlier([Customer ID])),[Customer ID])
Count across within booking ID
countx(filter(table ,[Customer ID] =earlier([Customer ID]) && [Booking ID] =earlier([Booking ID])),[Customer ID])
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 35 | |
| 34 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 99 | |
| 73 | |
| 66 | |
| 65 |