Forum Discussion

patshannon11's avatar
patshannon11
Frequent Visitor
2 years ago
Solved

Create Measure that Counts and Ranks Another Measure and Updates when Filtered

My goal is to create a summary table containing a measure that scores each ZIP based on Facility 1 % Share, where the highest share has a score of 100%.  I would also like the scoring to maintain the...
  • BeaBF's avatar
    BeaBF
    2 years ago

    patshannon11 modify these two measures:

    Facility 1 Share RANK =
    RANKX(
        ALLSELECTED('Table'[County], 'Table'[ZIP]),
        [Facility 1 % Share],
        ,
        DESC,
        Skip
    )
     
    ZIP Count =
    COUNTROWS(ALLSELECTED('Table'[ZIP], 'Table'[County]))
     
    now it works also with County filter.
     

     

    If it's ok, please accept the answer as solution.
     
    BBF