Forum Discussion
Field Parameter - Hierarchy
Hi joshua1990 I had the same issue and I found something that worked!!
I set up two separate field parameter tables which have a one to one relationship with each other on an additional column (Value4 in my model) in the “top layer” field parameter table. You just need to edit the top layer field parameter table DAX slightly. I made a simple data model with a master data table and 3 dimensional tables with 2 layers of hierarchy (Region -> Country, Vertical -> Industry, Product Group -> Detailed Product)
Here is the result...
Top level:
Ability to drill down (expanded Hierarchy, but all the other drill down options work):
Sample model (Requires additional “Value 4” column):
Table definition for "Parameter" table - note I generated this table with the Field Parameter feature, then edited the definition slightly to add the second hierarchy layer name:
Then the parameter fields from each parameter table go into your visual.
I’ve attached the sample pbix: Field Parameter within Field Parameter.pbix Let me know if this works for you!
14/06/23 - Link has now been updated, seems it has expired, should be working again.
- alya12 years agoHelper V
Thank you so much for your solution! I created 3 layers of parameter tables for Year, Month, and Date. But for some reason I couldn't do 1 to 1 relationship and cross filter Both. I had to do Many to 1 (lower level to higher level) and cross filter Single. It still looks to be working. Do you know if this is ok?
- mostvp1232 years agoKudo Collector
Glad it helped!!
One to many should work fine, as long as your hierarchy drills down in the one -> many direction. I'm not sure why you can't set up one to one though (note that one to one is always cross-filter both). Make sure that each of your rows in your relationship columns have exactly one corresponding row with the same value in both tables. A screenshot of your field parameter tables would help! 🙂- alya12 years agoHelper V
That's great, thank you! Yes, I am quite perplexed as well. Please see attached screenshots, thank you for taking a look: