Hierarchies and Drill Down in Power BI
A hierarchy is an ordered list of columns from general to detailed (Year › Month, or State › City › Store). Drill down walks those levels inside one visual. It is not drill through to another page.
Friends! The owner asks “Maharashtra kitna, Pune kitna, Kothrud store kitna?” Why does one chart fail? Because all levels fight for space. How? We build a Location hierarchy on a fictional FreshBasket model, put it on a bar axis, and press the four drill buttons. Down stays on the page. Through is a different guide.
मित्रांनो! Owner विचारतो “Maharashtra किती, Pune किती, Kothrud store किती?” एक chart का अपुरा पडतो? कारण सगळे levels जागा मागतात. कसे? FreshBasket मॉडेलवर Location hierarchy बनवायची, bar axis वर ठेवायची, चार drill बटणे दाबायची. Down पेजवरच राहतो. Through वेगळी गाईड आहे.
मित्रों! Owner पूछता है “Maharashtra कितना, Pune कितना, Kothrud store कितना?” एक chart क्यों अधूरा पड़ता है? क्योंकि सारे levels जगह माँगते हैं. कैसे? FreshBasket मॉडल पर Location hierarchy बनाएँ, bar axis पर रखें, चार drill बटन दबाएँ. Down पेज पर ही रहता है. Through अलग गाइड है.
Quick answer
Vertical path:
- Create hierarchy: drag City under State (or Month under Year).
- Put the whole hierarchy on the visual axis or rows.
- Drill down (drill mode + click) follows one path.
- Go to next level replaces the axis with the child level for all.
- Expand keeps parents and shows children under them.
- Drill up climbs back. This is not drill through.
Real example: State → City → Store sales
| State | City | Store | Sales |
|---|---|---|---|
| Maharashtra | Mumbai | Dadar | 600 |
| Maharashtra | Mumbai | Andheri | 400 |
| Maharashtra | Pune | Kothrud | 160 |
Plain bar of State shows Maharashtra 1160. That is fine for a headline.
What drill down does when you click Maharashtra in drill mode:
- The visual keeps Maharashtra’s path only.
- Next you see Mumbai 1000 and Pune 160.
- Drill into Mumbai → Dadar 600 and Andheri 400.
- Pune’s 160 is not on that path anymore.
- Drill up brings State back.
Why a hierarchy helper is needed: without levels stacked, the drill buttons stay grey. One field alone cannot walk down.
What do I need before this guide?
- Dimension columns on one table (fact vs dimension helps).
- A bar or matrix (matrix).
- Do not confuse with drill through.
- Course: Drill buttons.
Before and after (look at the tables first)
Before
आधी (Before)
पहले (Before)
After
नंतर (After)
बाद में (After)
Build the hierarchy
A hierarchy is Year › Quarter › Month (or State › City › Store) so one visual can drill level by level.
Hierarchy म्हणजे Year › Quarter › Month (किंवा State › City › Store) — एक visual स्तरानुसार drill करू शकतो.
Hierarchy यानी Year › Quarter › Month (या State › City › Store) — एक visual स्तर-दर-स्तर drill कर सकता है.
- Data pane → drag City onto State (same table).
- Drag Store under City.
- Rename the hierarchy Location.
- Date table: Year › Quarter › Month › Date is the usual time hierarchy.
- Levels must live on one table. That is why City sits on Store, not on the fact table alone.
The four drill moves
Four drill moves: drill down one path, go to the next level for all, expand one level, and drill up.
चार drill हालचाली: एका path वर drill down, सर्वांसाठी next level, एक level expand, आणि drill up.
चार drill हरकतें: एक path पर drill down, सबके लिए next level, एक level expand, और drill up.
Drill down keeps one path. Expand shows children under every parent still on the visual.
Drill down एक path ठेवतो. Expand visual वर राहिलेल्या प्रत्येक parent खाली children दाखवतो.
Drill down एक path रखता है. Expand visual पर बचे हर parent के नीचे children दिखाता है.
- Drill down (mode) — click one bar; only that parent’s children appear.
- Go to the next level — every parent is replaced by its children (all cities, no states).
- Expand all down one level — states stay, cities appear underneath.
- Drill up — climb one level.
What you should see after Expand on State: Maharashtra still listed, with Mumbai and Pune under it. After Next level: only cities on the axis.
Down versus through (say it out loud)
- Drill down — same visual, deeper grain.
- Drill through — another page, filtered to the item.
- Use down for “show me cities inside the state”.
- Use through for “open the store detail page with slips and phone bill”.
Mistakes and calm fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| No drill icons | One field on axis | Add hierarchy / second level |
| Wrong cities appear | Used Next level vs Drill | Pick the button that matches the sentence |
| Levels from two tables | Hierarchy needs one table | Put attributes on the dimension |
| Confused with through | Mixed vocabulary | Separate guides; separate clicks |
Ravindra Bagale's Tip
Interview line: “Drill down stays in the visual; drill through opens a page. Expand keeps parents; next level replaces them.” Short and hireable. Got it?
Ravindra Bagale's Tip – मराठी
Interview line: “Drill down visual मध्येच राहतो; drill through एक page उघडतो. Expand parents ठेवतो; next level त्यांना बदलतो.” Short आणि hireable. समजलं का?
Ravindra Bagale's Tip – हिंदी
Interview line: “Drill down visual में ही रहता है; drill through एक page खोलता है. Expand parents रखता है; next level उन्हें बदल देता है.” Short और hireable. समझ में आया?
Practice task
- Build State › City › Store.
- Try all four buttons on a bar chart.
- Write one sentence for Expand vs Next level.
- Drill up until State returns.
Got it? Hierarchy sets the ladder; drill buttons walk it inside one visual. Next: field parameters. Let us go ahead.
समजलं का? Hierarchy शिडी ठरवते; drill बटणे एका visual मध्ये चालतात. पुढे: field parameters. आता पुढे जाऊया.
समझ में आया? Hierarchy सीढ़ी तय करती है; drill बटन एक visual में चलते हैं. आगे: field parameters. अब आगे बढ़ते हैं.
Frequently asked questions
What is a hierarchy?
An ordered set of columns from general to detailed, such as Year › Month › Day, used for drilling in one visual.
Drill down vs expand?
Drill down follows one clicked path. Expand shows the next level under every visible parent.
Drill down vs drill through?
Down stays inside the visual. Through opens another page filtered to the item.
Why are drill buttons missing?
Only one field is on the axis. Add a hierarchy or a second level.
Can levels come from two tables?
A hierarchy lives on one table. That is one reason State and City sit together on a dimension.
Course lessons?
What a hierarchy is, and the drill buttons chapter.