This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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 impressions having value 1 for 20 rows , i only need to pick or show the last 10 entries with least impressions (Not showing 0).
Also impression is coming from a field parameter with below formula
Solved! Go to Solution.
hI @uj91
Try the following:
Bottom Keywords =
VAR _N = 10 -- Create virtual table with all keywords, ignoring outer row context
VAR AggregatedTable =
ADDCOLUMNS (
SUMMARIZE (
ALLSELECTED ( 'KeywordsTable' ),
-- removes row context effects
'KeywordsTable'[Keyword]
),
"TotalValue", CALCULATE ( SUM ( 'KeywordsTable'[Value] ) ) -- replace wit the actual measure
) -- Exclude keywordswith total value 0
VAR FilteredTable =
FILTER ( AggregatedTable, [TotalValue] <> 0 ) -- Return only the bottom N keywords
VAR _keywords =
SELECTCOLUMNS ( TOPN ( _N, FilteredTable, [TotalValue], ASC ), [Keyword] )
RETURN
CALCULATE (
SUM ( KeywordsTable[Value] ),
KEEPFILTERS ( KeywordsTable[Keyword] IN _keywords )
)
The formula is showing more entries and need soemthing which can filter the visual as the measure field here is a field parameter
not working as expected. I need to show only 10 bottom entries with least value (values repeated are fine).
Blank values brokes the formula. Use below, I tested it, works fine.
Rank_Bottom10 =
VAR Rank_ =
RANKX ( FILTER ( ALLSELECTED ( DimKeyword[Keyword] ), [KPI Measures_new] > 0 ), [KPI Measures_new], , ASC, DENSE)
RETURN
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 )
Table visual:
Keyword
KPI Measures_new
Visual-level filter:
Bottom 10 Keywords → is 1
(Optional) Sort:
KPI Measures_new → Ascending
Can you mark it as a accepted solution, please.
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
It is unclear to me
1 - what you mean by field parameter
2 - what KPI Measures_new is (a measure I assume, pls confirm)
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your thread
Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page
Consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
Hi, this works, hope it is what you were asking
It is a measure, it is using Product[Color], a column you will have to substitute with the one on which you are doing the RANK column
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your threadWant to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page
Consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 28 | |
| 23 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 49 | |
| 47 | |
| 41 | |
| 21 | |
| 19 |