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
paulpena78
Frequent Visitor

filtrar el ultimo Event Change ID

Hola a tod@s,

 

En esta oportunidad agradezco cualquier ayuda para este requerimiento:

 

  • Segun la tabla de la  imagen deseo que solo se muestre el ultimo EV_CHANGE_ID que se haya generado segun el EVENT_ID.

Event ID CLOMC.jpeg

1 ACCEPTED SOLUTION

I've just tested both solutions posted and they work for me

result.png

I've attached the sample PBIX file for you





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

8 REPLIES 8
PaulDBrown
Community Champion
Community Champion

Ok. Try:

Último =

VAR Ult = CALCULATE(MAX(Table[EV_CHANGE_ID]), ALLEXCEPT (Table, Table [EVENT_ID]))

RETURN

COUNTROWS (SUMMARIZE(FILTER(Table, Table[EV_CHANGE_ID = Ult), Table[EV_CHANGE_ID], Table[EVENT_ID]))

 

add the measure to the filter pane and set the value to equal 1





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi @PaulDBrown ,

 

Please Please Apologies!!!!! but not working:

I'm add the measure in Filter panel and set the value to equal 1 but show all items:

 

paulpena78_0-1655930199962.png

 

 

 

 

Hi @PaulDBrown Good Morning,

Can you help me?

Thanks. 

I've just tested both solutions posted and they work for me

result.png

I've attached the sample PBIX file for you





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






PaulDBrown
Community Champion
Community Champion

Apologies! Try:

Último =

VAR Ult = CALCULATE(MAX(Table[EV_CHANGE_ID]), ALLEXCEPT (Table, Table [EVENT_ID]))

RETURN

IF(MAX(Table[EV_CHANGE_ID]) = Ult, MAX(Table[EV_CHANGE_ID]))





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi @PaulDBrown 

I'm sorry but no working, I want this result:

 

paulpena78_0-1655926525315.png

 

 

 

PaulDBrown
Community Champion
Community Champion

Prueba:

Último =

VAR Ult = CALCULATE(MAX(Table[EV_CHANGE_ID]), ALLEXCEPT (Table, Table [EVENT_ID]))

RETURN

IF(MAX(Table[EV_CHANGE_ID]) = Ult, Table[EV_CHANGE_ID])





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi @Paul ,

 

I have a message error:

paulpena78_0-1655924139905.png

Thank you.

 

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.