Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
DHB
Helper V
Helper V

relationships between fields

I've configured some files in PBI like this...

Table.png

I want a table to show me the update dates (a column in each of the 4 files on the right) by course (from the course dimension on the left).  When I try to put data from >1 of the one to many files (assignment, discussion or quiz dimensions) into the table PBI tells me that it can't determine the relationships between the fields.  

 

I can put the one to one file (wiki dimension) with data from any one of the other three dimensions.  It just repeats the wiki update date for each instance of the other dimension's update date.

 

Does anyone have any idea how I can make this work?

 

Thanks in advance.

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@DHB

 

In your scenario, it seems you build the relationships between Course dimension to all other 4 dimensions based on ID column. Those 4 dimensions have no relationships between each other. So we can't put the 4 update dates into same visual. You have to create 4 measures to return the recent update date in corresponding table. See my sample below:

 

555.PNG

 

666.PNG

 

777.PNG

 

888.PNG

 

Then create measures to return the MAX date:

 

recent Dim_A Date = CALCULATE(MAX(Dim_A[Dim_A_Date]))
recent Dim_B Date = CALCULATE(MAX(Dim_B[Dim_B_Date]))
recent Dim_C Date = CALCULATE(MAX(Dim_C[Dim_C_Date]))

000.PNG

 

 

Regards,

View solution in original post

3 REPLIES 3
v-sihou-msft
Microsoft Employee
Microsoft Employee

@DHB

 

In your scenario, it seems you build the relationships between Course dimension to all other 4 dimensions based on ID column. Those 4 dimensions have no relationships between each other. So we can't put the 4 update dates into same visual. You have to create 4 measures to return the recent update date in corresponding table. See my sample below:

 

555.PNG

 

666.PNG

 

777.PNG

 

888.PNG

 

Then create measures to return the MAX date:

 

recent Dim_A Date = CALCULATE(MAX(Dim_A[Dim_A_Date]))
recent Dim_B Date = CALCULATE(MAX(Dim_B[Dim_B_Date]))
recent Dim_C Date = CALCULATE(MAX(Dim_C[Dim_C_Date]))

000.PNG

 

 

Regards,

Thanks for taking the time to help.  The solution works perfectly.

DHB
Helper V
Helper V

Is there some DAX I could use to filter out multiples in the assignment, quiz and discussion dimension tables and keep only the most recent updated date? 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors