Forum Discussion
Bottom 10 considering repeated value.
- 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)
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
- FBergamaschi8 months agoSuper User
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
Test =VAR NumberOfValuesToShowFromBottom = 4VAR MaxRank =MAXX ( ALL ( 'Product'[Color] ), [RANK] )VAR MinRank = MaxRank - NumberOfValuesToShowFromBottomVAR CurrentRank = [RANK]RETURNIF (CurrentRank <=MaxRank && CurrentRank >= MinRank,CurrentRank)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