Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I want to be able to count within a table, the number of times a value appears within a column.
For example i have the data below with 5 employees. And a [Hierarchy Path] string column.
I want to be able to count the number of times the [Employee] appears within the Column, [Hierarchy path].
Employee | Hierarhy Path | Column String Count |
AA | EE | AA | 4 |
BB | EE | AA | BB | 1 |
CC | EE | AA | CC | 1 |
DD | EE | AA | DD | 1 |
EE | EE | 5 |
Solved! Go to Solution.
@Abawde1 ,
a new column
=
var _emp = [Employee]
return
countx(filter(Table, search(_emp, [Hierarhy Path],,0) >0) , [Employee])
Thank you amitchandak, works perfect
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
10 |