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,
I need help with getting a summed value based on the number of times a string value from one column appears in another column. For example:
For each distinct value in a column named PartNum:
take that value and find each instances of it in a column named RowCount.PseudoLines:
For each instance that it is found, I need to sum up the values in the NonConfig-PN field:
Thank you
Solved! Go to Solution.
I was able to figure it out through a measure. In the calculation I also filter by the given year it appears in as well.
Hi, @automated_user ;
From your screenshot, I am confused as to why it is the result of 00111 (link the two figures above).
Can you use a simple example and want the result to be output? In order to understand your logic and train of thought.
How to upload PBI in Community
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@v-yalanwu-msft NonConfig-PN can be any range of numbers. But here is an example:
| PartNum | RowCount.PseudoLines | NonConfig-PN | Total |
| aaa | bbb | 4 | 2 |
| ccc | aaa | 1 | 3 |
| aaa | ddd | 0 | 2 |
| bbb | bbb | 2 | 6 |
| bbb | aaa | 1 | 6 |
| ddd | ccc | 3 | 0 |
| aaa | ddd | 0 | 2 |
So if you take 'aaa' from PartNum and find each instances of it in the RowCount.PseudoLines.. for that instance it appears you would sum up the NonConfig-PN in that row it appears in. So the Total would be '2' for 'aaa'.
Hope this helps!
I was able to figure it out through a measure. In the calculation I also filter by the given year it appears in as well.
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 |
|---|---|
| 51 | |
| 47 | |
| 29 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 88 | |
| 73 | |
| 39 | |
| 26 | |
| 24 |