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
Hello!
It seems I'm out of options and I can't seem to find the right solution.
My data is like this:
| Date | Person | Count Instance |
| 1/1/2024 | Person 1 | 2 |
| 1/1/2024 | Person 1 | 2 |
| 1/1/2024 | Person 2 | 1 |
| 2/5/2024 | Person 1 | 1 |
| 2/7/2024 | Person 2 | 1 |
| 2/5/2024 | Person 3 | 1 |
| 9/1/2024 | Person 4 | 1 |
| 10/6/2024 | Person 2 | 2 |
| 10/6/2024 | Person 2 | 2 |
The data for Date and Person are already present. I just need to create a DAX expression for a column (Count Instance)that calculates the instance of the combination of Date and Person (eg: Person 2 with date 10/6/2024 appeared 2 times, therefore the count should be 2).
I tried to use SUMMARIZE but it's giving me error "The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."
Solved! Go to Solution.
Hi,
This calculated column formula works
Column = CALCULATE(COUNTROWS(Data),FILTER(Data,Data[Date]=EARLIER(Data[Date])&&Data[Person]=EARLIER(Data[Person])))
Hope this helps.
Here is a better version
Hi,
This calculated column formula works
Column = CALCULATE(COUNTROWS(Data),FILTER(Data,Data[Date]=EARLIER(Data[Date])&&Data[Person]=EARLIER(Data[Person])))
Hope this helps.
Here is a better version
No need to use DAX. The implicit measures can do that for you. Power BI automatically aggregates.
Hi @lbendlin,
Yeah I know I can do that but I need it to show as another column in Data view.
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 |
|---|---|
| 52 | |
| 51 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |