This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I have a table with three hierarchy columns. I want to count the number of times the third event occurs under second hierarchy and count the number of times that second event occurs under first hierarchy. For example:
Table1:
| Hierarchy_1 | Hierarchy_2 | Hierarchy_3 |
| A | a | jack |
| A | a | sam |
| A | b | sam |
| A | b | rob |
| B | b | rob |
| B | c | jack |
| B | b | sam |
| B | b | ken |
| C | d | ken |
| C | d | ken |
| C | a | sam |
| C | a | sam |
I want the following result:
| Hierarchy_1 | Hierarchy_2 | Hierarchy_3 | Count |
| A | a | jack | 1 |
| A | a | sam | 1 |
| A | b | sam | 1 |
| A | b | rob | 1 |
| B | b | rob | 1 |
| B | c | jack | 1 |
| B | b | sam | 1 |
| B | b | ken | 1 |
| C | d | ken | 2 |
| C | a | sam | 2 |
Solved! Go to Solution.
@Anonymous , to me this seems simple count in tbale visual
Count(Table[Hierarchy_3])
or you can try
Countrows(summarize(Table, Table[Hierarchy_1], Table[Hierarchy_2], Table[Hierarchy_3]) )
@Anonymous , to me this seems simple count in tbale visual
Count(Table[Hierarchy_3])
or you can try
Countrows(summarize(Table, Table[Hierarchy_1], Table[Hierarchy_2], Table[Hierarchy_3]) )
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 36 | |
| 30 | |
| 22 | |
| 22 |