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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Dynamic relationship table

Hi everyone,

I have a datatable:

1.JPG

 

I want to calculate KPI for objects: Organization, Team, Employee. To accomplish this, I created a parent-child table and used Hierachy-Slicer to decentralize:

2.JPG

 

3.JPG

To filter and calculate KPIs from the Data table, I created the relationship between the Data table and the Parent-Child table:

5.JPG

By this method, I was able to calculate and use the Slicer to filter data based on the Name column on the Data table for 2 KPIs:

KPI 1 = SUM(data[Value1])
KPI 2 = SUM(data[Value2])
 

But I have problems with the 3rd KPI:

KPI 3 = SUM(data[Value3])

How can I calculate KPI #3 and still use Hierachy-Slicer to filter the Name2 column in the Data table (KPI 1 and 2 use the Name column)

 

Thanks you.

pbix file 

1 REPLY 1

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.