Customers wish to see your dashboard visuals, however in addition they wish to see the underlying particulars. For example, a visualization of gross sales by nation shows good data. Nevertheless, your customers may also wish to see gross sales for particular cities inside a rustic and even clients inside a metropolis. Relationships make this attainable, and hierarchies hold ranges constant when drilling.
On this tutorial, I’ll present you create a hierarchy that helps drill mode in Energy BI. Upon getting that hierarchy, you possibly can shortly construct visualizations that assist drilling. At one time this was tedious work, however now it’s only some clicks. You’ll study what a hierarchy is, why you may want one and construct one while you do.
I’m utilizing Microsoft Energy BI Desktop on a Home windows 10 64-bit system. You may as well use Energy BI service, although you’ll want a Professional or Premium license. You’ll be able to obtain the Microsoft Energy BI demo file for this tutorial.
SEE: Microsoft Energy Platform: What you must learn about it (free PDF) (TechRepublic)
How one can decide for those who want a hierarchy in Energy BI
If customers wish to see particulars, you’ll each profit from a hierarchy. A hierarchy is a fast approach so that you can fulfill drilling necessities and the consumer will all the time see the drill ranges in the identical order.
A hierarchy is a set of fields structured by ranges. The hierarchy has a mother or father degree and from there customers can drill down via the decrease ranges, which include particulars concerning the mother or father. The hierarchy requires not less than two ranges, a mother or father and a set of particulars, however a hierarchy can include many ranges.
SEE: Hiring package: Microsoft Energy BI developer (TechRepublic Premium)
You possibly can construct particular person visualizations for every degree and use filters to synchronize updates, however a hierarchy is faster and simpler. Briefly, a hierarchy permits customers to discover knowledge in a constant method. Creating the visualization manually may also allow drill mode, however after getting a hierarchy, all visualizations based mostly on that hierarchy shall be constant and user-friendly.
Determine A exhibits two visualizations based mostly on the identical tables within the Journey Works DW 2020 (v1) Energy BI Desktop pattern mannequin. This mannequin comprises a hierarchy within the Gross sales Territory desk. I based mostly the visualization on the left on the hierarchy and added the Gross sales Quantity discipline from the Gross sales desk. I constructed the visualization on the appropriate manually. Each assist drill mode.
Determine A
Initially, the 2 visualizations seem like the identical, however seems to be are deceiving. Word the order of the fields within the hierarchy within the X-axis bucket: group, nation and area. The Gross sales Quantity discipline is within the Y-axis bucket. The drill buttons are beneath the visualization, and the black circle signifies that drill mode is on.
Determine B exhibits what occurs while you click on the double-arrow button, which drills all the way down to the subsequent degree. They’re not the identical, which is perhaps a little bit of a shock to your finish customers in the event that they’re used to seeing particulars in a unique order.
Determine B
The visualization to the appropriate is in nation, group, area order. Which means the mother or father ranges aren’t the identical. Irrespective of how the top consumer drills, the expertise received’t be the identical because the one constructed on the hierarchy. The truth is, the one to the appropriate is a bit deceptive as a result of it seems to assist the nation degree because the mother or father degree. We are able to clearly see through the use of the hierarchy that the mother or father degree is the group degree, not less than within the hierarchy.
The consumer ought to have the identical drilling expertise from one visualization to the subsequent. That’s why you’ll wish to create a hierarchy for drilling. In addition to, it makes your work a bit simpler.
How one can add a hierarchy in Energy BI
The demonstration file for this Energy BI tutorial already has a hierarchy within the Gross sales Territory desk. That hierarchy is in group, nation, area order, which you noticed earlier. Let’s add one which’s in nation, group, area order. Almost definitely, you wouldn’t add this second hierarchy, however it’s a good way to match the variations.
So as to add a hierarchy, click on Mannequin within the navigation pane to the left. Then, browse round till you discover the Gross sales Territory desk. The icon to the left of Gross sales Territories identifies the group of fields as a hierarchy.
So as to add a brand new hierarchy with nation because the mother or father degree to the Gross sales Territory desk, right-click the Nation discipline, the mother or father discipline, and select Create Hierarchy from the ensuing menu (Determine C).
Determine C
Within the Common pane to the appropriate, enter a brand new identify for the hierarchy, Gross sales Territories Nation Guardian, on the prime of the pane.
From the Choose A Column To Add dropdown, select Group. Energy BI provides the mother or father discipline, Nation, for you.
From the identical dropdown, select Area (Determine D).
Determine D
Click on the Apply Stage Modifications hyperlink beneath the Area discipline.
While you return to the Report window, you can see the brand new hierarchy within the Fields pane, as proven in Determine E. You now have two hierarchies on which to construct visualizations. A desk can have multiple hierarchy, however you’d in all probability not construct two that merely reorder a few fields.
Determine E
Customers in all probability received’t know you’re utilizing a hierarchy, so the visualizations persistently present drill ranges in the identical order throughout all visualizations. Nevertheless, they may discover for those who don’t and never in a great way.