Forum Discussion

rob7one's avatar
rob7one
Helper I
3 years ago
Solved

Rankx with two subcategories

Hello guys,   can someone tell what is wrong here?   Rankx with 2 categories = CALCULATE(RANKX(ALL(a_notifi_list,a_notifi_list[Name 1 /vendor name]),a_notifi_list[Defective (external)],,DESC),a_...
  • smpa01's avatar
    smpa01
    3 years ago

    rob7one A measure to capture supplier Rank by mm.yyyy and factory

    Measure = 
    RANKX (
        FILTER (
            ALL ( 'Table 1' ),
            'Table 1'[mm.yyyy] = MAX ( 'Table 1'[mm.yyyy] )
                && 'Table 1'[factory] = MAX ( 'Table 1'[factory] )
        ),
        CALCULATE ( MAX ( 'Table 1'[amount of defects] ) ),
        ,
        DESC,
        DENSE
    )

     

    PFA Workbook