Forum Discussion

v-srekom's avatar
v-srekom
Microsoft Employee
6 years ago
Solved

Getting matrix values dynamically based on the hierarchy level

I have row hierarchy of 4 levels in a matrix. If I go to 3rd level, the values should take from 'x' column of fact table and If I go to 4th level, the values should take from 'y' column of fact table. My dataset is live conncted with the tabular model. The format will be as shown below: 

 

                                   Owner

Level1

   Level2

      Level3            value of ‘X’ column

         Level4         value of ‘Y’ column

         Level4         value of ‘Y’ column

         Level4         value of ‘Y’ column

      Level3            value of ‘X’ column

         Level4         value of ‘Y’ column

         Level4         value of ‘Y’ column

 

As I am new to Power BI, I am not able to figure out how to do this. Is there any way like creating a calculated column or is there any other approach?

4 Replies