Forum Discussion

sande_ch's avatar
sande_ch
Helper I
1 year ago
Solved

RANKX Function considering slicer value

Hi there I am new here and hope to find help. Simply put, I have the following data table. It is a list of accidents (id_accident). For each accident I also have the ID of the company in which the ...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi sande_ch,

     

    A bridge table helps resolve many-to-many relationships and avoids filter ambiguity by creating clear one-to-many connections between related tables.

     

    RANKX), functions like ALL() or ALLSELECTED() can remove filters and return all category values, even if no data exists for the current selection (e.g., company or accident type).This leads to "empty" categories appearing in visuals

     

    Rank only those activities where the number of accidents is greater than zero for the selected company and type of accident.

     

    Regards,

    Vinay Pabbu