Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Different measure per drill down level

Dear all,   I'm trying to put together a chart with a drill-down across a company hierarchy (Country -> Branch - > Reporting Unit) where I cannot just sum up the individual results due to diversifi...
  • v-cherch-msft's avatar
    7 years ago

    Hi Anonymous 

     

    You may check the relationships and use below measure:

    Measure = 
    IF (
        ISFILTERED ( CompanyHierarchy[Country] ),
        SUM ( Country_Results[Result] ),
        IF (
            HASONEVALUE ( Branch_Results[Branch] )
                && HASONEVALUE ( CompanyHierarchy[Reporting Unit] ) = FALSE (),
            SUM ( Branch_Results[Result] ),
            IF (
                HASONEVALUE ( CompanyHierarchy[Reporting Unit] ),
                SUM ( ReportingUnit_Results[Result] )
            )
        )
    )
    

    Regards,

    Cherie