Forum Discussion

MPICKETT's avatar
MPICKETT
Frequent Visitor
6 years ago
Solved

Using RANKX, with a measure, and ISINSCOPE, within a matrix hierarchy

Hello -    I have tried everything I can think of or could find content for, in order to understand how to achieve the proper rankings at each level in a two-level hierarchy but I am stumped and fr...
  • mahoneypat's avatar
    mahoneypat
    6 years ago

    You read correctly that a CALCULATE() is needed there; however, when you reference a measure like that, it is automatically wrapped in one.  If you were to write SUM(Table[Column1]), that would need to be wrapped in CALCULATE().  

     

    For your measure, to troubleshoot, do you get the expected result for region rank when you take driver out of the hierarchy?  Or if you comment out your return with // and return your isdrivervisible and isregionvisible variables instead, you can help diagnose where the problem is.

     

    If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

    Regards,

    Pat