Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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])
@Abawde1 ,
a new column
=
var _emp = [Employee]
return
countx(filter(Table, search(_emp, [Hierarhy Path],,0) >0) , [Employee])
Thank you amitchandak, works perfect
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
71 | |
37 | |
21 | |
18 | |
15 |
User | Count |
---|---|
125 | |
32 | |
27 | |
24 | |
23 |