Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Child and parent filter

My requirement is I have Main table that is below and Imported into Power BI made table visual and taken Child field as a slicer and when choose any Child filed please see My requirement Main table ...
  • Fowmy's avatar
    5 years ago

    Anonymous 

    You can achieve this by creating a separate disconnected table for the Child column.

    You can download the file: HERE

     

    Measure = 
    
    var __childselected = SELECTEDVALUE('Child Table'[Child])
    var __table = 
        CALCULATETABLE( 
            'Main Table',
            'Main Table'[Child] = __childselected 
        )
    return
    ISEMPTY(__table) * 1

    ________________________

    If my answer was helpful, please consider Accept it as the solution to help the other members find it

    Click on the Thumbs-Up icon if you like this reply 🙂

    YouTube  LinkedIn