Forum Discussion
uj91
8 months agoHelper I
Bottom 10 considering repeated value.
So i need bottom 10 keywords in a table considering repeated value meaning just last 10 entries of keyword. ALso i dot want to show value 0. For example in the above table there are im...
- 8 months agoI tweaked your fomrula and it worked !
Bottom 10 Keywords =VAR BaseTable =FILTER (ALL ( 'Reporting.Search'[KeywordText] ),[KPI Measures_new] <> 0&& NOT ISBLANK ( [KPI Measures_new] ))VAR Bottom10Table =TOPN (10,BaseTable,[KPI Measures_new], ASC,'Reporting.Search'[KeywordText], ASC -- deterministic tie-breaker)RETURNIF (CONTAINS (Bottom10Table,'Reporting.Search'[KeywordText],SELECTEDVALUE ( 'Reporting.Search'[KeywordText] )),1)
Amar_Kumar
8 months agoSuper User
Bottom 10 Keywords :=
VAR RankedValue =
RANKX (
FILTER (
ALL ( 'Table'[Keyword] ),
[KPI Measures_new] <> 0
&& NOT ISBLANK ( [KPI Measures_new] )
),
[KPI Measures_new],
'Table'[Keyword], -- tie-breaker → ensures “last 10”
ASC,
SKIP
)
RETURN
IF ( RankedValue <= 10, 1 )
How to apply (must follow exactly)
Table visual:
Keyword
KPI Measures_new
Visual-level filter:
Bottom 10 Keywords → is 1
(Optional) Sort:
KPI Measures_new → Ascending
uj91
8 months agoHelper I
This is as close as i could have goten to the solution , thanks ! However its showing more than 10 entries , it is showing 22 entries