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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
Anonymous
Not applicable

Hierarchy and drilldown of tables

Hello all,

 

I have three tables with different information from three different tables from database.

 

I have one table with shifts, the second table has tasks and the third table has lines.

 

So if I choose one shift, the other to tables must filter by that shift. And if I choose one task the lines table must filter also by that task.

 

I have foreign keys in the tables, but in power bi I cannot create the relationship because it says that I need to delete or deactivate some relationships between other tables.

 

Is there any workaround to implement this hierachy/drilldown between these tables?

 

Thanks in advance,

Rui

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @v-easonf-msft,

 

I have found some workaround. I have created views in SQL that represents those fact tables and I think I can work with them on this case.

I need to perform some more tests but I think it works.

 

Thanks for your reply and help.

 

Regards,

Rui 

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak 

 

Thanks for your reply. Basically I have these 3 tables.

rmorais_0-1626173417808.png

If I click in one row of the first one (FactShift table) I want to filter the others, and if I click in one row of the sencond (FactTaskExecution table) the last one (FactTaskDetailExecution table) should filter as well depending on the above one.

 

All tables have FK to another dim tables (master data).

 

For example, all three tables have FK to DimOperator table.

 

I think the problem here is that I cannot create a relationship between FactShift and FactTaskExecution. And also I cannot create a relationship between FactTaskExecution and FactTaskDetailExecution.

 

It says the error of delete or deactivate relationship between FactTaskExecution and DimVoiceOperator. But if I do that I cannot see the operator name in the table.

 

Thank you,

Rui

 

I think the problem here 

Anonymous
Not applicable

@amitchandak ,

 

Sorry to bother, but do you have any idea on this?

 

Thanks,

Rui

Hi,  @Anonymous 

Maybe you can try to create an inactive relationship, and use function "userelationship“ to activate the relationship when creating a measure.

https://www.sqlbi.com/articles/using-userelationship-in-dax/ 

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi 

 

Best Regards,
Community Support Team _ Eason

Anonymous
Not applicable

Hi @v-easonf-msft,

 

I have found some workaround. I have created views in SQL that represents those fact tables and I think I can work with them on this case.

I need to perform some more tests but I think it works.

 

Thanks for your reply and help.

 

Regards,

Rui 

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.