Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
in a report I´m buiding I have multiple alternate hierarchies that I need to switch between. I have now created multiple tables that each have the parent, child and hierarchy name columns. I have used this DAX Patterns to guide me.
https://www.daxpatterns.com/parent-child-hierarchies/
I have then used UNION to combine all of these into one big table and I´m using SWITCH and slicer on the report which measure and hierarchy I want to show. It seems to work perfectly.
However, I need to prepare for additional hierarchies. My first obstacle is to create a DAX formula that would create the PATH for each of the hierarchies present in the table, there may be unknown number of hierarchies.
Is there a way to do this with just a single added column?
EDIT: I know I´m might hit other obstacles as well and I need to modify my existing solution a lot but I´d like to get the PATH part sorted for now 🙂
Please provide the sample data in usable format.
When you create the PATH calculated column you can apply a table filter on the [Hierarchy] column.
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |