Forum Discussion

danielPrieto's avatar
danielPrieto
Advocate I
8 years ago
Solved

Show different columns columns based on filter.

We have a star model with bridge tables. Below is a part of the model:

 

We have an user and course dimensions and the Evaluation Fact Table. Moreover, each client can set different properties on their users. Here is an example of each of these tables:

 

Property:

 

PropertyIDPropertyNameCustomerID
1Sex1
2Country1
3Year of Birth2
4Sex2

 

User:

 

UserIDPropertyIDPropertyValue
11M
12Spain
21F
22EEUU
31F
32France
431980
44F
531985
54M

 

Evaluation:

CourseUserScore
1190
2150
1280
4355
5315
545

 

We want to create a table visualization in which we can show to each customer (in the future each customer would be a role) the information of the evaluations of their students along with the information of their properties. For customer 1 it would have to show:

 

CourseUserScoreSexCountry
1190MSpain
2150MSpain
1280F

EEUU

 

However, for client 2 it should show:

CourseUserScoreSexYear of Birth
4355F1980
5315F1980
545M1985

 

There are many clients and I do not know the properties that all of them have created, so we should build the table dynamically.

 

Is there any way to do this in powerbi?