Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
fjjohann
Frequent Visitor

Ranking by category

Hello,

 

I have this Table:

table.JPG

The Column "id_service_order" the values are unique.

The Column "target_object" the values are repeated.

 

 

And I have this matrix:

matriz.JPG

 

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,

1 ACCEPTED SOLUTION
v-ljerr-msft
Employee
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. Smiley Happy

 

Regards

View solution in original post

1 REPLY 1
v-ljerr-msft
Employee
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. Smiley Happy

 

Regards

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.