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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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.

Share with Power BI Enthusiasts: 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.