Forum Discussion

SteveIOW's avatar
SteveIOW
Helper II
4 years ago
Solved

keep the upper quartile constant

All,

 

I ahve a table thus...

 

the average column is correct - and of course changes with column 1. however I need to be able to compare this with the upper quartile of the enitre dataset - i.e. I need the right hand column to give me the value 3 (in this case) all the way down.

 

I am using the below to calculate the Upper quartile.

UQMxDx =

VAR _A =
SUMMARIZE (
'MainFacts',
'MainFacts'[ProvCode],
'MainFacts'[p_spell_id],
"MaxRwCnt", MAX ( MainFacts[RwCnt] )
)
RETURN
CALCULATE(PERCENTILEX.INC ( _A, [MaxRwCnt], .75 ), ALLSELECTED(Providers[Current_code])

)

 

Is anyone able to point me in the right direction please?

Steve

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi SteveIOW ,

     

    Try ALL() function. If it doesn't work, please share some sample data so that we could test the formula.

     

    Best Regards,

    Jay

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi SteveIOW ,

     

    Try ALL() function. If it doesn't work, please share some sample data so that we could test the formula.

     

    Best Regards,

    Jay