Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have charts that show market share. But there are too many categories in each chart (because there are so many developers). I need to trim it down to display only the top 5. But it should also show "Other."
The chart should show the Top 5 Starts by Developer (my data is real estate). I did a search of this topic but I could not seem to get it to work. Let me know if you need any other information.
Thanks.
Edit:
Here are my formulas but I'm getting this error: "Expressions that yield variant data-type cannot be used to define calculated columns."
Solved! Go to Solution.
Hi @Jodes
It seems the column [Starts] cannot be used in your formula.Please check which column you want to be ranked and then use it instead of the [Starts].Below is the similar post for your reference.If you need further help,please share some sample data and expected output.
https://community.powerbi.com/t5/Desktop/TOP-N-and-quot-OTHERS-quot-values/m-p/574191#M271241
Rank = RANKX(FILTER('All Data', 'All Data'[Year] = EARLIER('All Data'[Year])), 'All Data'[Starts],,DESC,Dense)
Regards,
Hey,
maybe this blogpost may provide you some ideas: https://www.minceddata.info/2018/06/06/topsomething-and-all-the-rest-called-other/
Regards,
Tom
@TomMartens Thanks Tom. In the blog the link to the .pbx file does not seem to work. It only lets me download a jpeg.
Hi @Jodes
It seems the column [Starts] cannot be used in your formula.Please check which column you want to be ranked and then use it instead of the [Starts].Below is the similar post for your reference.If you need further help,please share some sample data and expected output.
https://community.powerbi.com/t5/Desktop/TOP-N-and-quot-OTHERS-quot-values/m-p/574191#M271241
Rank = RANKX(FILTER('All Data', 'All Data'[Year] = EARLIER('All Data'[Year])), 'All Data'[Starts],,DESC,Dense)
Regards,
Hey @Jodes ,
thanks for the hint that the link is broken, I just updated the blog post.
And here is the direct link to the pbix file:
Regards,
Tom
@v-cherch-msft I got it working, thanks.
Is there a simple way to add a slicer so I can select top 5, top 10, etc?