Forum Discussion

cmce2019's avatar
cmce2019
Frequent Visitor
5 years ago
Solved

Dynamic filtering / issue in column

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

Hi,

I have a test data set and my issue is when i try to dynamic id assign the columns "relid" and "relparentid" by filters

i will explain it, i want to show a organizacional chart, like this:

I want the following chart to show by a filter for example by "Engineering" 

 

 

But the issue is when i use a BI filter, because i need the columns "relid" and "relparentid" to recalculate when using the filter, otherwise it will show this up

Therefore the chart won't load, because when I'm filtering I need a root, and as showed in the previous image every single item has a parent id, so when filtering this parent id doesn't exist. So I need the list to be calculated in the following way.

I did this in Excel, then I transferred the data into Power BI, but I need to do it solely in Power BI

 

pdta: 

This video shows how I have the Excel file, and trying to load it into Power BI

 

Hopefully you can help me and thank you.

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hello @cmce2019 ,

    Data from the child layer in the organization chart can only be presented after the data in the parent layer to be displayed. Therefore, you can select Management when you select the engineering department at the same time. Similarly, if you want to display sales department information, also select the management department. In addition, you can also do this by creating a department dimension table and a measure. I created a sample file for you, you can check if that's what you want.

    Note: Open the sample file with the latest version of Power BI Desktop.

    Choose multiple Create department dimension table and measure departments Create department Choose multiple departments dimensiontable and measurethe best greetings

    Rena

6 Replies