Skip to main content
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Join the Fabric FabCon Global Hackathonโ€”running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Paramaters with Different Level of Hierarchies

Hello Community!

How to set up a paramater that would consist of different layers of hierarchies (used in a pivot table but also in visualizations)? 

I want the user to be able to choose between the level of hierarchy they wish to display. 

Many thanks

2 ACCEPTED SOLUTIONS

Sorry if my answer seems ambiguous, by the way you phrased your question I would assume you already know how to create hierarchies within Power BI and how to create parameters as well. This is the process:

1. Go to Model view and right click on any field you want to bring into a hierarchy:

ray_aramburo_0-1737039144926.png

2. After its creation you'll see the hierarchy icon and on the pane on the left, add the second level of Hierarchy through the dropdown list:

ray_aramburo_1-1737039256283.png

3. Repeat 1 & 2 as needed to create the hierarchies with different levels

ray_aramburo_2-1737039315670.png

4. Now you have 2 alternatives for achieving what you want: 

Create a pivot visual per Hierarchy and show/hide them through Bookmarks.

4a.

ray_aramburo_4-1737039713024.png

4b. 

ray_aramburo_5-1737039820814.png

Repeat this to show/hide the other visual.

ray_aramburo_6-1737039881367.png

 

4c. Add a bookmark navigator

ray_aramburo_7-1737039928130.png

4d. Now you can switch along bookmarks and hierarchies:

ray_aramburo_8-1737039977941.png

 

Option 2:

4.1 Create a field parameter containing all the levels of hiearchies you would like to include:

ray_aramburo_9-1737040061391.pngray_aramburo_10-1737040148574.png

4.2 Create your pivot adding the Parameter created to the Rows

ray_aramburo_11-1737040265438.png

4.3 Through the parameter slicer you can control which fields to show and in which order

ray_aramburo_12-1737040330627.png

 

ray_aramburo_13-1737040352570.png

I hope this now answers your question. I have attached a sample file for you to view what's in the screenshots.

 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





View solution in original post

Anonymous
Not applicable

Hi @Anonymous 

 

Thank you very much N0EL and ray_aramburo for your prompt reply.

 

I found your question while checking forum posts. Did you solve your problem? If not, here are some ideas I can offer.

 

Here's some dummy data

 

vnuocmsft_0-1737100992726.png

 

In the Modeling tab, click New Parameter.

 

vnuocmsft_1-1737101176476.png

 

Add column options (e.g. Country, State, City).

 

vnuocmsft_2-1737101210696.png

 

Drag a slicer visualization to the report and add parameter fields to the slicer. And display data using parameter fields.

 

vnuocmsft_3-1737101344960.png

vnuocmsft_4-1737101475752.png

 

 

The user can select the hierarchy level to be displayed through the slicer.

 

Here is the result.

 

vnuocmsft_5-1737101499593.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous 

 

Thank you very much N0EL and ray_aramburo for your prompt reply.

 

I found your question while checking forum posts. Did you solve your problem? If not, here are some ideas I can offer.

 

Here's some dummy data

 

vnuocmsft_0-1737100992726.png

 

In the Modeling tab, click New Parameter.

 

vnuocmsft_1-1737101176476.png

 

Add column options (e.g. Country, State, City).

 

vnuocmsft_2-1737101210696.png

 

Drag a slicer visualization to the report and add parameter fields to the slicer. And display data using parameter fields.

 

vnuocmsft_3-1737101344960.png

vnuocmsft_4-1737101475752.png

 

 

The user can select the hierarchy level to be displayed through the slicer.

 

Here is the result.

 

vnuocmsft_5-1737101499593.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

N0EL
Resolver I
Resolver I

Hey @Anonymous,

If the example below looks similar to what you're looking for, @parry2k has a wonderful video on his YouTube channel detailing how to accomplish this along with a link to his sample pbix file imaged below.  Have a good one!

 

Video Link:  https://www.youtube.com/watch?v=xjBVKLn5fzs

 

2025-01-16_09-46-08.gif

 

ray_aramburo
Super User
Super User

Create multiple hierarchies and then create a parameter that contains the different hierarchies.





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

@ray_aramburo I'm sorry but this is a waste of time for both of us. Obviously I wouldn't ask had I known how to do it and you answer says literally nothing. 

Sorry if my answer seems ambiguous, by the way you phrased your question I would assume you already know how to create hierarchies within Power BI and how to create parameters as well. This is the process:

1. Go to Model view and right click on any field you want to bring into a hierarchy:

ray_aramburo_0-1737039144926.png

2. After its creation you'll see the hierarchy icon and on the pane on the left, add the second level of Hierarchy through the dropdown list:

ray_aramburo_1-1737039256283.png

3. Repeat 1 & 2 as needed to create the hierarchies with different levels

ray_aramburo_2-1737039315670.png

4. Now you have 2 alternatives for achieving what you want: 

Create a pivot visual per Hierarchy and show/hide them through Bookmarks.

4a.

ray_aramburo_4-1737039713024.png

4b. 

ray_aramburo_5-1737039820814.png

Repeat this to show/hide the other visual.

ray_aramburo_6-1737039881367.png

 

4c. Add a bookmark navigator

ray_aramburo_7-1737039928130.png

4d. Now you can switch along bookmarks and hierarchies:

ray_aramburo_8-1737039977941.png

 

Option 2:

4.1 Create a field parameter containing all the levels of hiearchies you would like to include:

ray_aramburo_9-1737040061391.pngray_aramburo_10-1737040148574.png

4.2 Create your pivot adding the Parameter created to the Rows

ray_aramburo_11-1737040265438.png

4.3 Through the parameter slicer you can control which fields to show and in which order

ray_aramburo_12-1737040330627.png

 

ray_aramburo_13-1737040352570.png

I hope this now answers your question. I have attached a sample file for you to view what's in the screenshots.

 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors