Forum Discussion
DaniloTavecchio
3 years agoFrequent Visitor
How to keep the last N rows from a log table
Hi all ! I have a Oracle log table that records some process events and this table is updated twice a week with a key formatted as a sort of progressive : YYYYnnn. For instance the 14th run of the ...
Anonymous
3 years agoNot applicable
Hi DaniloTavecchio ,
Here are the steps you can follow:
1. Create calculated column.
Number =
VALUE('Table'[ANNO_SEQ_CARICAMENTO])rank =
RANKX(
'Table','Table'[Number],,ASC,Dense)
2. Create measure.
Flag =
IF(
MAX('Table'[rank]) > MAXX(ALL('Table'),[rank]) -12,1,0)
3. Place [Flag]in Filters, set is=1, apply filter.
4. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly