Forum Discussion

Saxon202202's avatar
Saxon202202
Helper III
3 years ago
Solved

Matrix table using multiple column

Hi, I have data data table and the table contain country id, country code and qty.   In visualisation, I like to breakdown by country id, country code and qty in matrix table. At the moment all...
  • danextian's avatar
    danextian
    3 years ago

    Hi Saxon202202 

    I've edited the PBIX with a calculated column to rank Country Code by Country ID.

    Index = 
    RANKX (
        FILTER ( DATA, DATA[COUNTRY ID] = EARLIER ( DATA[COUNTRY ID] ) ),
        DATA[COUNTRY CODE],
        ,
        ASC,
        DENSE
    )