Forum Discussion

fjjohann's avatar
fjjohann
Frequent Visitor
9 years ago
Solved

Ranking by category

Hello,

 

I have this Table:

The Column "id_service_order" the values are unique.

The Column "target_object" the values are repeated.

 

 

And I have this matrix:

 

Well, 

I need that show me just one record by "target_object", only the last value "id_service_order".

Look, the "target_object" (Gerador 2), repeat in "id_service_order" 570 and 562... i need that matrix show me only the record with "id_service_order" 570.

 

As I work with the measures and columns calculated so that the matrix presents me only the last record of each "target_object"?

 

Thanks,

  • Hi fjjohann,

     

    According to your description above, you should be able to use MAX function to create a new measure to get only the last value "id_service_order" for each "target_object".

     

    measure_id_service_order = MAX ( 'Table1'[id_service_order] )
    

    Note: Just replace "Table1" with your real table name, then remove Column "id_service_order" from the Matrix visual, and show measure "measure_id_service_order" instead. :smileyhappy:

     

    Regards

1 Reply

  • v-ljerr-msft's avatar
    v-ljerr-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi fjjohann,

     

    According to your description above, you should be able to use MAX function to create a new measure to get only the last value "id_service_order" for each "target_object".

     

    measure_id_service_order = MAX ( 'Table1'[id_service_order] )
    

    Note: Just replace "Table1" with your real table name, then remove Column "id_service_order" from the Matrix visual, and show measure "measure_id_service_order" instead. :smileyhappy:

     

    Regards