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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Viswa11
Frequent Visitor

Need Help in finding Dependent table data

Hi All,

 

I have below columns in my dataset.

table_name - T1,T2,T3..,
tenant_name - A, B, C.. Unique values,
Operation - Read, Write, Other

Wave - Wave1, Wave2, Wave3, Wave4


I want to find dependent tenants for suppose, My data is like below:

 

WaveTenantTableOperation
Wave1   ATab1READ
Wave2   BTab2WRITE
Wave3   CTab3OTHER
Wave4   DTab2READ
Wave1   ETab1WRITE
Wave3   FTab8WRITE

Here, I want to find dependent tenants. For example Tenant A is reading the table in wave 1 but same table was writing by Tenant E in Wave1. I want to mark this Tenant A has dependent.
If table was reading and writing by one tenant, There is no other tenant using that table i want to mark it has Exclusive.
I am expecting out put like below:

TenantWave1Wave2Wave3Wave4
A1000
B0100
C    
D    
E    

Here, Tenant A was dependent on 1 other tenants in wave1, Tenant A was not dependent on anyother tenant in Wave2.

 

Any leads will be appriciated!
Thanks in advance.
 @Greg_Deckler @amitchandak @Ritaf1983 @lbendlin @Ashish_Mathur #Need Help

2 REPLIES 2
Sahir_Maharaj
Super User
Super User

Hello @Viswa11,

 

Can you please try the following:

DependentCount = 
SUMX(
    FILTER(
        'YourTable', 
        'YourTable'[DependencyStatus] = "Dependent"
    ), 
    1
)

Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ About: https://sahirmaharaj.com/about.html
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Hi @Sahir_Maharaj ,
How can i find dependency table, I don't have any dependency column. For each individual operation I can do count and all but here I want to check is there any other tenant reading the table which was writting by other tenant then i want to mark has dependent table.
I have tried something like below.

Dependent =
IF (
    'Table'[Operation] = "WRITE",
    IF (
        CALCULATE (
            COUNTROWS ('Table'),
            FILTER (
                'Table',
                'Table'[Operation]  = "READ"
                && 'Table'[TENANT_NAME] <> EARLIER ('Table'[TENANT_NAME])
                && 'Table'[TABLE_NAME] = EARLIER ('Table'[TABLE_NAME])


            )
        ) > 0,
        "Dependent",
        "Not Dependent"
    ),
    "Not Applicable"
)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.